private List <Schedule> GetAllSchedules() { var repo = new EplRepo(); var schedules = repo.GetAllSchedule(); return(schedules); }
public void AddandGet() { _repo.UpSertSchedule(new Schedule { Id = 1, Time = DateTime.Now }); var result = _repo.GetAllSchedule(); Assert.AreEqual(1, result.Count); Assert.AreEqual(1, result.First().Id); }