public void GetBillAmount_For_PurchaseAmountLessThanZero_Throws_ArgumentException() { /* Arrange */ decimal purchaseAmount = -99.99m; var regularCustomerDiscountStrategy = new PremiumCustomerDiscountStrategy(); /* Act */ _ = regularCustomerDiscountStrategy.GetBillAmount(purchaseAmount); }
public void GetBillAmount_For_DifferentPurchaseAmounts_Returns_ExpectedDiscountedBillAmount(string purchaseAmount, string expectedDiscountedBillAmount) { /* Arrange */ var premiumCustomerDiscountStrategy = new PremiumCustomerDiscountStrategy(); /* Act */ var result = premiumCustomerDiscountStrategy.GetBillAmount(decimal.Parse(purchaseAmount)); /* Assert */ Assert.AreEqual(decimal.Parse(expectedDiscountedBillAmount), result); }