// GET api/<controller> public List<ScheduleGame> Get() { using (var db = new CSBCDbContext()) { var rep = new ScheduleGameRepository(db); return rep.GetAll().ToList(); } }
public void GameSchedulesGetAllTest() { using (var db = new CSBCDbContext()) { var rep = new ScheduleGameRepository(db); var games = rep.GetAll(); Assert.IsTrue(games.Any()); } }
public void TestGetGamesByDate() { using (var db = new CSBCDbContext()) { var rep = new ScheduleGameRepository(db); var venues = rep.GetAll(); Assert.IsTrue(venues.Any()); } }