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();
 }
Example #3
0
 public OrderServiceTest()
 {
     this.db          = TestStartup.CreateDatabase();
     this.order       = this.db.Orders.FirstOrDefault();
     this.orderDetail = this.db.OrderDetails.FirstOrDefault();
 }
Example #4
0
 public OrderControllerTest()
 {
     this.db           = TestStartup.CreateDatabase();
     this.shoppingCart = TestStartup.CreateShoppingCart();
 }
Example #5
0
 public ShoppingCartServiceTest()
 {
     this.db           = TestStartup.CreateDatabase();
     this.shoppingCart = TestStartup.CreateShoppingCart();
     this.products     = this.db.Products.ToList();
 }