コード例 #1
0
        public void TaxHelperCalculatesSalesTax()
        {
            decimal amount    = Convert.ToDecimal("16.5");
            decimal shipping  = Convert.ToDecimal("1.5");
            decimal TaxAmount = TaxHelper.calculateTax("US", "07001", "NJ", "Avenel", "305 W Village Dr", "US", "07446", "NJ", "Ramsey", "63 W Main St", amount, shipping);

            Console.WriteLine(TaxAmount);
            Assert.AreEqual(1.093125, TaxAmount);
        }