コード例 #1
0
        public OrderRepoTests()
        {
            _repo = new OrderRepo(new OrderDetailRepo());
            StoreDataInitializer.ClearData(_repo.Context);
            StoreDataInitializer.InitializeData(_repo.Context);

        }
コード例 #2
0
 protected override void CleanDatabase()
 {
     using (StoreContext storeContext = new StoreContext())
     {
         StoreDataInitializer.ClearData(storeContext);
     }
 }
コード例 #3
0
 public OrderTests() : base()
 {
     using (StoreContext storeContext = new StoreContext())
     {
         StoreDataInitializer.ClearData(storeContext);
         StoreDataInitializer.InitializeData(storeContext);
     }
 }
コード例 #4
0
        protected override void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    StoreDataInitializer.ClearData(_repo.Context);
                    _repo.Dispose();
                }

                disposedValue = true;
                base.Dispose(disposing);
            }
        }
コード例 #5
0
 private void CleanDatabase()
 {
     StoreDataInitializer.ClearData(_db);
 }
コード例 #6
0
 public void Dispose()
 {
     StoreDataInitializer.ClearData(_repo.Context);
     _repo.Dispose();
 }
コード例 #7
0
 public ProductRepoTests()
 {
     _repo = new ProductRepo();
     StoreDataInitializer.ClearData(_repo.Context);
     StoreDataInitializer.InitializeData(_repo.Context);
 }
コード例 #8
0
 public ShoppingCartRepoTests()
 {
     _repo = new ShoppingCartRepo(new ProductRepo());
     StoreDataInitializer.ClearData(_repo.Context);
     StoreDataInitializer.InitializeData(_repo.Context);
 }
コード例 #9
0
 public void Dispose()
 {
     StoreDataInitializer.ClearData(_db);
     _db.Dispose();
 }
コード例 #10
0
 public void Dispose()
 {
     StoreDataInitializer.ClearData(new StoreContext());
     _db.Dispose();
 }
コード例 #11
0
 public OrderTests()
 {
     _db = new StoreContext();
     StoreDataInitializer.ClearData(new StoreContext());
     StoreDataInitializer.InitializeData(new StoreContext());
 }