Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save litichevskiydv/18268df5fb6497e1723680ab3e83888b to your computer and use it in GitHub Desktop.
Save litichevskiydv/18268df5fb6497e1723680ab3e83888b to your computer and use it in GitHub Desktop.
public class PrintOrderProcessingResultsMapperTests
{
UsedImplicitly]
public static IEnumerable<object[]> BulkInsertUsageTestsData;
static PrintOrderProcessingResultsMapperTests()
{
BulkInsertUsageTestsData =
new[]
{
new object[]
{
PrintOrderProcessingResultsGenerator.Default
.WithPrintingCost(100.10d),
PrintOrderProcessingResultDtosGenerator.Default
.WithPrintingCost(101d)
},
....
};
}
....
[Theory]
[MemberData(nameof(PrintOrderProcessingResultsMappingTestsData))]
public void ShouldVerifyPrintOrderProcessingResultsMapping(
PrintOrderProcessingResult input,
PrintOrderProcessingResultDto expected)
{
// When
var actual = _mapper.Map(input);
// Then
var compareLogic = new CompareLogic().SetMaxDifferencesCount(1000);
Assert.Empty(compareLogic.Compare(expected, actual).Differences);
}
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment