public void BaseTearDown() { using (var context = new AppContext(DatabaseConnection)) context.Database.Delete(); }
protected void Repository(Action <Repository.EF.Repository> action) { using (var context = new AppContext(DatabaseConnection)) using (var repository = new Repository.EF.Repository(context)) action(repository); }