Last active
February 1, 2018 18:59
-
-
Save litichevskiydv/f2e5f378a79c96aa50e1810d1447543d 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 mockPriceDownloader = new Mock<IPriceDownloader>(); | |
mockPriceDownloader | |
.Setup(...) | |
.Returns(...); | |
_calculator = new IllustrationsPrintingCostsCalculator( | |
new IllustrationsPlacer(...), | |
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