Last active
January 27, 2018 19:54
-
-
Save litichevskiydv/fb3fe2771857c9690a7bcf66f20fa87d 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 IllustrationsPrintingCostsCalculatorTests | |
{ | |
private readonly IllustrationsPrintingCostsCalculator _calculator; | |
public IllustrationsPrintingCostsCalculatorTests() | |
{ | |
var mockIllustrationsPlacer = new Mock<IIllustrationsPlacer>(); | |
mockIllustrationsPlacer | |
.Setup(...) | |
.Returns(...); | |
var mockPriceDownloader = new Mock<IPriceDownloader>(); | |
mockPriceDownloader | |
.Setup(...) | |
.Returns(...); | |
_calculator = new IllustrationsPrintingCostsCalculator( | |
mockIllustrationsPlacer.Object, | |
mockPriceDownloader.Object | |
); | |
} | |
[Theory] | |
[MemberData(nameof(PrintingCostCalculationTestsData))] | |
public void ShouldCalculatellustrationsPrintingCost(...) | |
{ | |
Assert.Equal(expectedCost, _calculator.Calcuate()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment