public AddOrderResponse StateTaxCheck(States state) { AddOrderResponse response = new AddOrderResponse(); response.Order.TaxRate = StateTaxRepo.GetStateTax(state); return(response); }
public void CanReadDataFromFile() { StateTaxRepo repo = new StateTaxRepo(); List <StateTaxInfo> tax = repo.LoadTaxData(); Assert.IsTrue(tax.Count > 0); }
public void CanReadDataFromFile() { ProductRepo repo = new ProductRepo(); StateTaxRepo taxRepo = new StateTaxRepo(); List <ProductDetail> product = repo.LoadProducts(); Assert.IsTrue(product.Count > 0); }
public void CanReadDataFromFile() { OrderRepo repo = new OrderRepo(_dirPath); StateTaxRepo taxRepo = new StateTaxRepo(); DateTime orderDate = new DateTime(2013, 6, 1); List <Order> order = repo.LoadAllOrders(orderDate); Assert.IsTrue(order.Count > 0); }