Пример #1
0
 public static void InitStore(TestContext ctx)
 {
     using (var db = new StoreDbContext())
     {
         if (db.Database.Exists())
         {
             db.Database.Delete();
         }
         db.Database.Create();
     }
 }
 public ListProductsByCategoryCommand(StoreDbContext db)
 {
     _db = db;
 }
Пример #3
0
 public GetProductCommand(StoreDbContext db)
 {
     _db = db;
 }
Пример #4
0
 public GetShoppingCartCommand(StoreDbContext db, User user, IDictionary<string, object> session = null)
 {
     _db = db;
     _user = user;
     _session = session;
 }
 public FulfillRegistrationRequestCommand(StoreDbContext db)
 {
     _db = db;
 }
 public AddRegistrationRequestCommand(StoreDbContext db, GetShoppingCartCommand getCartCmd, IMailService mailService)
 {
     _db = db;
     _getCartCmd = getCartCmd;
     _mailService = mailService;
 }