public void ShouldDiscountMaxRateWithIgnoringActualCalculatedDiscount() { long price = 3000; percentageLimitDiscountStratigy = new PercentageLimitDiscountStrategy(price); long discount = percentageLimitDiscountStratigy.Discount(); Assert.Equal(300, discount); }
public void ShouldDiscountPercentageLimitPolicy() { long price = 1800; percentageLimitDiscountStratigy = new PercentageLimitDiscountStrategy(price); long discount = percentageLimitDiscountStratigy.Discount(); Assert.Equal(270, discount); }