public async Task NoPilotsAvailable_ReturnsNull() { SetDefaultNow(); _fileServiceMock.Setup(x => x.GetPilotWorkSchedules()).Returns(Task.FromResult(Enumerable.Empty <PilotWorkSchedule>())); var request = new PilotScheduleRequest() { Location = Base.Berlin, DepartureDateTime = TwoPm, ReturnDateTime = FourPm }; var result = await _service.GetNextAvailablePilot(request); Assert.Null(result.PilotId); Assert.Null(result.ReservationKey); }