Пример #1
0
 public LastTweetUpdater(IDateSupply dateSupply, IAnimatedTweetDateUpdater animatedTweetDateUpdater, ISitePageTweetDateUpdater sitePageTweetDateUpdater)
 {
     _DateSupply = dateSupply ?? throw new ArgumentNullException(nameof(dateSupply));
     _AnimatedTweetDateUpdater = animatedTweetDateUpdater ?? throw new ArgumentNullException(nameof(animatedTweetDateUpdater));
     _SitePageTweetDateUpdater = sitePageTweetDateUpdater ?? throw new ArgumentNullException(nameof(sitePageTweetDateUpdater));
 }
Пример #2
0
 public SpecialDaySelector(IDateSupply dateSupply, IRandomSelector randomSelector)
 {
     _DateSupply     = dateSupply ?? throw new ArgumentNullException(nameof(dateSupply));
     _RandomSelector = randomSelector ?? throw new ArgumentNullException(nameof(randomSelector));
 }