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/f2e5f378a79c96aa50e1810d1447543d to your computer and use it in GitHub Desktop.
Save litichevskiydv/f2e5f378a79c96aa50e1810d1447543d to your computer and use it in GitHub Desktop.
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