Пример #1
0
 // GET api/<controller>
 public List<ScheduleGame> Get()
 {
     using (var db = new CSBCDbContext())
     {
         var rep = new ScheduleGameRepository(db);
         return rep.GetAll().ToList();
     }
 }
Пример #2
0
 public void GameSchedulesGetAllTest()
 {
     using (var db = new CSBCDbContext())
     {
         var rep = new ScheduleGameRepository(db);
         var games = rep.GetAll();
         Assert.IsTrue(games.Any());
     }
 }
Пример #3
0
 public void TestGetGamesByDate()
 {
     using (var db = new CSBCDbContext())
     {
         var rep = new ScheduleGameRepository(db);
         var venues = rep.GetAll();
         Assert.IsTrue(venues.Any());
     }
 }