public CategoryServiceTest() { this.db = TestStartup.CreateDatabase(); this.shoppingCart = TestStartup.CreateShoppingCart(); this.category = this.db.Categories.FirstOrDefault(); this.mapper = TestStartup.CreateMapper(); }
public ProductServiceTest() { this.db = TestStartup.CreateDatabase(); this.mapper = TestStartup.CreateMapper(); }
public OrderServiceTest() { this.db = TestStartup.CreateDatabase(); this.order = this.db.Orders.FirstOrDefault(); this.orderDetail = this.db.OrderDetails.FirstOrDefault(); }
public OrderControllerTest() { this.db = TestStartup.CreateDatabase(); this.shoppingCart = TestStartup.CreateShoppingCart(); }
public ShoppingCartServiceTest() { this.db = TestStartup.CreateDatabase(); this.shoppingCart = TestStartup.CreateShoppingCart(); this.products = this.db.Products.ToList(); }