public static TestDbContext CreateTestModels(this TestDbContext context, int count)
 {
     context.CreateTestUsers(5).CreateTestEmployees(5);
     for (var i = 0; i < count; i++)
     {
         var model = InitTestModel.DbLoad(i);
         model = context.Add(model).Entity;
     }
     context.SaveChanges();
     return(context);
 }
Exemplo n.º 2
0
 public static TestDbContext CreateSimplyInit(this TestDbContext context, int count)
 {
     return(context.CreateTestUsers(count).CreateTestEmployees(count).CreateTestModels(count));
 }