public void GenerateSchedule_ScheduleGenerated_OK() { var schedule = _schedularService.GenerateSchedule(); Assert.IsTrue(schedule.Any()); Assert.AreEqual(14, schedule.Count); }
public Task <List <ScheduleDto> > Handle(GenerateSchedule request, CancellationToken cancellationToken) { var schedules = _schedularService.GenerateSchedule(); var mappedData = schedules.Select(schedule => schedule.MapToDto()).ToList(); return(Task.FromResult(mappedData)); }