public OrderRepoTests() { _repo = new OrderRepo(new OrderDetailRepo()); StoreDataInitializer.ClearData(_repo.Context); StoreDataInitializer.InitializeData(_repo.Context); }
protected override void CleanDatabase() { using (StoreContext storeContext = new StoreContext()) { StoreDataInitializer.ClearData(storeContext); } }
public OrderTests() : base() { using (StoreContext storeContext = new StoreContext()) { StoreDataInitializer.ClearData(storeContext); StoreDataInitializer.InitializeData(storeContext); } }
protected override void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { StoreDataInitializer.ClearData(_repo.Context); _repo.Dispose(); } disposedValue = true; base.Dispose(disposing); } }
private void CleanDatabase() { StoreDataInitializer.ClearData(_db); }
public void Dispose() { StoreDataInitializer.ClearData(_repo.Context); _repo.Dispose(); }
public ProductRepoTests() { _repo = new ProductRepo(); StoreDataInitializer.ClearData(_repo.Context); StoreDataInitializer.InitializeData(_repo.Context); }
public ShoppingCartRepoTests() { _repo = new ShoppingCartRepo(new ProductRepo()); StoreDataInitializer.ClearData(_repo.Context); StoreDataInitializer.InitializeData(_repo.Context); }
public void Dispose() { StoreDataInitializer.ClearData(_db); _db.Dispose(); }
public void Dispose() { StoreDataInitializer.ClearData(new StoreContext()); _db.Dispose(); }
public OrderTests() { _db = new StoreContext(); StoreDataInitializer.ClearData(new StoreContext()); StoreDataInitializer.InitializeData(new StoreContext()); }