public UserJoinedHandler( [NotNull] IMediator mediator, [NotNull] PhrasesProvider phrasesProvider) { _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _phrasesProvider = phrasesProvider ?? throw new ArgumentNullException(nameof(phrasesProvider)); }
public UsersListAskedHandler( [NotNull] ITeamspeakUsersProvider teamspeakUsersProvider, [NotNull] IMediator mediator, [NotNull] PhrasesProvider phrasesProvider) { _teamspeakUsersProvider = teamspeakUsersProvider ?? throw new ArgumentNullException(nameof(teamspeakUsersProvider)); _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _phrasesProvider = phrasesProvider ?? throw new ArgumentNullException(nameof(phrasesProvider)); }