public void When_CalculatePriceForProductWithVolumePriceWithNotEnoghtCount_Expected_PriceMultiplayOnCount() { PricingVolumeAlgorithm algorithm = new PricingVolumeAlgorithm(); decimal result = algorithm.Calculate("B", 11, 1.00m, 1.20m, 100); Assert.That(result, Is.EqualTo(11.0)); }
public void When_CalculatePriceForProductWithSinglePrice_Expected_PriceMultiplayOnCount() { PricingVolumeAlgorithm algorithm = new PricingVolumeAlgorithm(); decimal result = algorithm.Calculate("A", 3, 1.25m, null, null); Assert.That(result, Is.EqualTo(3.75m)); }