public void ImportDutyOnCheckoutForImportedBasicTaxExemptArticles(int n) { var checkoutCountry = Country.Ita; var supplierCountry = Country.Usa; var categories = new[] { Category.Books, Category.Food, Category.Medical }; var expectedTax = new ImportDuty(); CheckReceiptTaxedPrice(n, categories, supplierCountry, checkoutCountry, expectedTax); }
public void ImportDutyIsRoundedUpToFiveCents() { var importDuty = new ImportDuty(); Assert.Equal(3.82M + 0.20M, importDuty.ApplyTo(3.82M)); Assert.Equal(3.02M + 0.20M, importDuty.ApplyTo(3.02M)); Assert.Equal(3.00M + 0.15M, importDuty.ApplyTo(3.00M)); Assert.Equal(2.84M + 0.15M, importDuty.ApplyTo(2.84M)); Assert.Equal(2.18M + 0.15M, importDuty.ApplyTo(2.18M)); Assert.Equal(2.00M + 0.10M, importDuty.ApplyTo(2.00M)); }