Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dstenroejl committed Nov 19, 2024
1 parent fada677 commit f77cc80
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<TestOrchestrationParameter>'
var typedDto = JsonSerializer.Deserialize<OrchestrationInstanceTypedDto<TestOrchestrationParameter>>(dtoAsJson);
typedDto!.ParameterValue.TestString.Should().NotBeNull();
typedDto!.ParameterValue.TestInt.Should().NotBeNull();
Expand Down

0 comments on commit f77cc80

Please sign in to comment.