public async Task Handle() { var request = new SummaryListLogbookEntries(); var result = await interactor.Handle(request, CancellationToken.None); result.Payload.Should().HaveCount(1); }
public async Task <UseCaseResult <IEnumerable <LogbookEntry> > > Handle([NotNull] SummaryListLogbookEntries request, CancellationToken cancellationToken) { var allEntries = await logbookEntryRepository.GetAllEntriesAsync(false); return(UseCaseResult <IEnumerable <LogbookEntry> > .Success(allEntries)); }