static IRepositoryGetPagedListTest()
        {
            db = new InMemoryTestContext();

            db.AddRange(TestCountries);
            db.AddRange(TestCities);
            db.AddRange(TestTowns);

            db.SaveChanges();
        }
예제 #2
0
 static TestGetFirstOrDefaultAsync()
 {
     db = new InMemoryTestContext();
     if (!db.Countries.Any())
     {
         db.AddRange(TestCountries);
         db.AddRange(TestCities);
         db.AddRange(TestTowns);
         db.SaveChanges();
     }
 }