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

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

            db.SaveChanges();
        }
Ejemplo n.º 2
0
 static TestGetFirstOrDefaultAsync()
 {
     db = new InMemoryTestContext();
     if (!db.Countries.Any())
     {
         db.AddRange(TestCountries);
         db.AddRange(TestCities);
         db.AddRange(TestTowns);
         db.SaveChanges();
     }
 }