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