public void StoreAffiliate_Gets_FiveDollar_ForEveryHundred_DollarBill() { // Quickly create Bill object with a line items and pass it to // User object var bill = new Bill(1, 99, "Trainers"); var storeAffiliate = new StoreAffiliate(1); var netPayableAmount = storeAffiliate.getNetAmountPayable(bill); Assert.Equal(89.1, netPayableAmount); }
public void StoreAffiliate_Gets_TenPercent_Discount() { // Quickly create Bill object with a line items and pass it to // User object var bill = new Bill(1, 75, "shoes"); var storeAffiliate = new StoreAffiliate(1); var netPayableAmount = storeAffiliate.getNetAmountPayable(bill); Assert.Equal(67.5, netPayableAmount); }
public void StoreAffiliate_NoPercentage_Discount_OnGroceris() { // Quickly create Bill object with a line items and pass it to // User object var bill = new Bill(1, 65, "Groceries"); var storeAffiliate = new StoreAffiliate(1); var netPayableAmount = storeAffiliate.getNetAmountPayable(bill); Assert.Equal(65, netPayableAmount); }