public BicyclePathGroupRepositoryTests(DatabaseFixture fixture)
 {
     Repository     = new BicyclePathGroupRepository(fixture.Context);
     PathRepository = new BicyclePathRepository(fixture.Context);
     Paths          = new BicyclePaths();
     PathRepository.Add(Paths[0]);
     PathRepository.Add(Paths[1]);
 }
Esempio n. 2
0
 public async Task Save(IEnumerable <BicyclePath> bicyclePaths)
 {
     foreach (var bicyclePath in bicyclePaths)
     {
         await BicyclePathRepository.Add(bicyclePath, false);
     }
     await BicyclePathRepository.SaveChanges();
 }