public void ConstructorFailed( IBrowserView browserView, ISocialNetBotEventService socialNetBotEventService) { Assert.Throws <ArgumentNullException>(() => new SocialNetAuthorization(browserView, socialNetBotEventService)); }
public void ConstructorSuccess(IBrowserView browserView, ISocialNetBotEventService socialNetBotEventService) { var socialNetAuthorization = new SocialNetAuthorization(browserView, socialNetBotEventService); Assert.NotNull(socialNetAuthorization); }
public BotService( ISocialNetClientFactory socialNetClientFactory, ICharStatistic charStatistic, ILogger <BotService> logger, ISocialNetBotEventService eventService) { _socialNetClient = socialNetClientFactory.GetTwitterSocialNetClient() ?? throw new ArgumentNullException(nameof(socialNetClientFactory)); _charStatistic = charStatistic ?? throw new ArgumentNullException(nameof(charStatistic)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _eventService = eventService ?? throw new ArgumentNullException(nameof(eventService)); }
public SocialNetAuthorization(IBrowserView browserView, ISocialNetBotEventService eventService) { _browserView = browserView ?? throw new ArgumentNullException(nameof(browserView)); _eventService = eventService ?? throw new ArgumentNullException(nameof(eventService)); }
public SocialNetBotEventHandler(ISocialNetBotEventService socialNetBotEventService) { _socialNetBotEventService = socialNetBotEventService ?? throw new ArgumentNullException(nameof(socialNetBotEventService)); }