Example #1
0
        public void GenerateSchedule_ScheduleGenerated_OK()
        {
            var schedule = _schedularService.GenerateSchedule();

            Assert.IsTrue(schedule.Any());
            Assert.AreEqual(14, schedule.Count);
        }
Example #2
0
        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));
        }