// Start the asset repository from a known state private void AssetTestRepositoryUp() { _db = new AssetTrackerDbContext(TestConnectionString); _db.Database.EnsureCreated(); AssetTestRepo = new AssetRepository(_db); }
// Tear the asset repository down after the test private void AssetTestRepositoryDown() { _db.Database.EnsureDeleted(); _db = null; AssetTestRepo = null; }