From f77cc807a8324699d606c1b950dcb3d8e9ee1360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Stenr=C3=B8jl?= Date: Tue, 19 Nov 2024 16:56:02 +0100 Subject: [PATCH] Comment --- .../Api/Mappers/OrchestrationInstanceMapperExtensionsTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/ProcessManager.Tests/Unit/Api/Mappers/OrchestrationInstanceMapperExtensionsTests.cs b/source/ProcessManager.Tests/Unit/Api/Mappers/OrchestrationInstanceMapperExtensionsTests.cs index 8fbf717237..66e6e2d0c3 100644 --- a/source/ProcessManager.Tests/Unit/Api/Mappers/OrchestrationInstanceMapperExtensionsTests.cs +++ b/source/ProcessManager.Tests/Unit/Api/Mappers/OrchestrationInstanceMapperExtensionsTests.cs @@ -34,10 +34,12 @@ public void MapToDto_WhenOrchestrationInstance_CreateOrchestrationInstanceDtoTha var orchestrationInstance = CreateOrchestrationInstance(); // Act + // => We create and serialize 'OrchestrationInstanceDto' var actualDto = orchestrationInstance.MapToDto(); var dtoAsJson = JsonSerializer.Serialize(actualDto); // Assert + // => But we can deserialize to specific 'OrchestrationInstanceTypedDto' var typedDto = JsonSerializer.Deserialize>(dtoAsJson); typedDto!.ParameterValue.TestString.Should().NotBeNull(); typedDto!.ParameterValue.TestInt.Should().NotBeNull();