public void ShowReservationsTest() { mockRepository.Setup(x => x.ShowReservations()) .Returns(listaReservations); var handler = new ShowReservationsHandler(mockRepository.Object); ShowReservations re = new ShowReservations(); var res = handler.Handle(re, ct); Assert.IsNotNull(res.Result); }
public Task <IEnumerable <Core.Entities.Reservation> > Handle(ShowReservations request, CancellationToken cancellationToken) { return(Task.Run(() => { return reservationRepository.ShowReservations(); })); }