Пример #1
0
 public SeasonCheckerBuilder()
 {
     _client                  = new Mock <IImdbClient>().Object;
     _htmlParserStrategy      = new Mock <IHtmlParserStrategyFactory>().Object;
     _cacheTvShowIds          = new Mock <IPersistantCache <string> >().Object;
     _cacheIgnoredTvShows     = new Mock <IPersistantCache <string> >().Object;
     _cacheLatestAiredSeasons = new Mock <IPersistantCache <int> >().Object;
     _dateTimeProvider        = new Mock <IDateTimeProvider>().Object;
 }
Пример #2
0
 public SeasonCheckerBuilder WithCacheLatestAiredSeasons(IPersistantCache <int> cache)
 {
     _cacheLatestAiredSeasons = cache;
     return(this);
 }
Пример #3
0
 public SeasonCheckerBuilder WithCacheIgnoredTvShows(IPersistantCache <string> cache)
 {
     _cacheIgnoredTvShows = cache;
     return(this);
 }