Ejemplo n.º 1
0
        public void GetTaxRatesTest()
        {
            int locationId = 4;
            int siteId     = -40000;

            TaxRestCalls taxRestCalls = new TaxRestCalls();

            IRestResponse response = taxRestCalls.GetTaxRates(locationId, siteId);

            Console.WriteLine(response.Content);

            Assert.AreNotEqual(0, response.ContentLength);
        }
Ejemplo n.º 2
0
        public void UpdateTaxRates()
        {
            int locationId = 4;
            int siteId     = -40000;

            RestRequestTaxes taxes = new RestRequestTaxes {
                Tax1 = 3.3, Tax2 = 2.5, Tax3 = 6.7, Tax4 = 2.3, Tax5 = 1.1
            };

            TaxRestCalls taxRestCalls = new TaxRestCalls();

            IRestResponse response = taxRestCalls.UpdateTaxRates(locationId, siteId, taxes);

            Console.WriteLine(response.Content);

            Assert.AreNotEqual(0, response.ContentLength);
        }