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