public void BasicTaxAndImportDutyOnCheckoutForImportedNonBasicTaxExemptArticles(int n) { var checkoutCountry = Country.Ita; var supplierCountry = Country.Usa; var exemptCats = new[] { Category.Books, Category.Food, Category.Medical }; var categories = Enum.GetValues(typeof(Category)).Cast <Category>().Except(exemptCats).ToList(); var expectedTax = new BasicTaxAndImportDuty(); CheckReceiptTaxedPrice(n, categories, supplierCountry, checkoutCountry, expectedTax); }
public void BasicTaxAndImportDutyIsRoundedUpToFiveCents() { var basicTaxAndImportDuty = new BasicTaxAndImportDuty(); Assert.Equal(25.30M + 3.80M, basicTaxAndImportDuty.ApplyTo(25.30M)); Assert.Equal(25.01M + 3.80M, basicTaxAndImportDuty.ApplyTo(25.01M)); Assert.Equal(25.00M + 3.75M, basicTaxAndImportDuty.ApplyTo(25.00M)); Assert.Equal(24.95M + 3.75M, basicTaxAndImportDuty.ApplyTo(24.95M)); Assert.Equal(24.70M + 3.75M, basicTaxAndImportDuty.ApplyTo(24.70M)); Assert.Equal(24.00M + 3.60M, basicTaxAndImportDuty.ApplyTo(24.00M)); }