예제 #1
0
 private async Task <Option <ReadOnlyCollection <QueriedMovie> > > GetQueriedMoviesFromSource()
 {
     if (_request.City)
     {
         return(await _repository.GetAllMoviesFromCity());
     }
     return(await _repository.GetAllMovies());
 }
예제 #2
0
 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));
 }