Last active
January 7, 2018 18:40
-
-
Save litichevskiydv/18268df5fb6497e1723680ab3e83888b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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