private async Task <Option <ReadOnlyCollection <QueriedMovie> > > GetQueriedMoviesFromSource() { if (_request.City) { return(await _repository.GetAllMoviesFromCity()); } return(await _repository.GetAllMovies()); }
public GetIntelligentBillboardHandlerShould() { _repository = Substitute.For <IQueriedMoviesRepository>(); _repository.GetAllMovies().Returns(FeedMoviesRepository().SomeNotNull()); _repository.GetAllMoviesFromCity().Returns(FeedMoviesRepository().SomeNotNull()); _dateTimeService = Substitute.For <IDateTimeService>(); _dateTimeService.Now().Returns(new DateTime(2020, 3, 11)); }