public async Task should_send_archive_command_for_all_slots_completed_180_days_ago() { var dayId = Guid.NewGuid().ToString(); var date = DateTime.UtcNow.AddDays(-180); var dayScheduled = new DayScheduled(dayId, Guid.NewGuid(), date); var calendarDayStarted = new CalendarDayStarted(_now); await Given(dayScheduled, calendarDayStarted); Then( new ArchiveDaySchedule(dayId), (await _esStore.LoadCommands("async_command_handler-day")).Last().Command); }
private void When(DayScheduled @event) { Id = new DayId(new DoctorId(@event.DoctorId), @event.Date).Value; _isScheduled = true; }