コード例 #1
0
 public CategoryServiceTest()
 {
     this.db           = TestStartup.CreateDatabase();
     this.shoppingCart = TestStartup.CreateShoppingCart();
     this.category     = this.db.Categories.FirstOrDefault();
     this.mapper       = TestStartup.CreateMapper();
 }
コード例 #2
0
 public HomeControllerTest()
 {
     this.shoppingCart = TestStartup.CreateShoppingCart();
 }
コード例 #3
0
 public OrderControllerTest()
 {
     this.db           = TestStartup.CreateDatabase();
     this.shoppingCart = TestStartup.CreateShoppingCart();
 }
コード例 #4
0
 public ShoppingCartServiceTest()
 {
     this.db           = TestStartup.CreateDatabase();
     this.shoppingCart = TestStartup.CreateShoppingCart();
     this.products     = this.db.Products.ToList();
 }