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; }
public GetProductCommand(StoreDbContext db) { _db = db; }
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; }