Ejemplo n.º 1
0
        // Start the asset repository from a known state
        private void AssetTestRepositoryUp()
        {
            _db = new AssetTrackerDbContext(TestConnectionString);
            _db.Database.EnsureCreated();

            AssetTestRepo = new AssetRepository(_db);
        }
Ejemplo n.º 2
0
 // Tear the asset repository down after the test
 private void AssetTestRepositoryDown()
 {
     _db.Database.EnsureDeleted();
     _db           = null;
     AssetTestRepo = null;
 }