public void NewCustomerPays2PercentExtra_WhenOrderIsWorthLessThan30() { var customer = new Customer(); var order = new Order(customer, 29); int discount = this.testee.CalculateDiscount(order); discount.Should().Be(-2); }
public void NewCustomerHas1PercentDiscount_WhenOrderIsWorth200OrMore() { var customer = new Customer(); var order = new Order(customer, 200); int discount = this.testee.CalculateDiscount(order); discount.Should().Be(1); }
public void RegularCustomerHas2PercentExtraDiscount_WhenOrderIsWorth100OrMore() { var customer = new Customer { NumberOfOrders = 10 }; var order = new Order(customer, 100); int discount = this.testee.CalculateDiscount(order); discount.Should().Be(7); }
public void Has5PercentDiscount_WhenCustomerIsRegularCustomer() { var customer = new Customer { NumberOfOrders = 10 }; var order = new Order(customer, 0); int discount = this.testee.CalculateDiscount(order); discount.Should().Be(5); }
public void LargeAccountCustomerHas6PercentDiscount_WhenOrderIsLessThan200() { var customer = new Customer { NumberOfOrders = 1000 }; var order = new Order(customer, 199); int discount = this.testee.CalculateDiscount(order); discount.Should().Be(6); }
public void LargeAccountCustomerAlwaysGetsTheBestDiscount() { var customer = new Customer { NumberOfOrders = 1000 }; var order = new Order(customer, 150); int discount = this.testee.CalculateDiscount(order); discount.Should().Be(7); }
public void LargeAccountCustomerHas8PercentDiscount_WhenOrderIsWorth200OrMore() { var customer = new Customer { NumberOfOrders = 1000 }; var order = new Order(customer, 200); int discount = this.testee.CalculateDiscount(order); discount.Should().Be(8); }