Exemplo n.º 1
0
 public TriggersContextFactory(
     ISlackConnectionRepository slackConnectionRepository,
     ISlackClientFactory slackClientFactory)
 {
     _slackConnectionRepository = slackConnectionRepository ??
                                  throw new ArgumentNullException(nameof(slackConnectionRepository));
     _slackClientFactory = slackClientFactory ?? throw new ArgumentNullException(nameof(slackClientFactory));
 }
Exemplo n.º 2
0
 public OrganizationsService(
     IOrganizationRepository repository,
     ISlackConnectionRepository slackConnectionRepository,
     ISlackClientFactory slackClientFactory)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _slackConnectionRepository = slackConnectionRepository ??
                                  throw new ArgumentNullException(nameof(slackConnectionRepository));
     _slackClientFactory = slackClientFactory ?? throw new ArgumentNullException(nameof(slackClientFactory));
 }
Exemplo n.º 3
0
 public SlackConnectionService(
     ISlackConnectionRepository slackConnectionRepository,
     IAddToSlackLinkProvider addToSlackLinkProvider,
     ISlackAccessTokenRetriever slackAccessTokenRetriever)
 {
     _slackConnectionRepository = slackConnectionRepository ??
                                  throw new ArgumentNullException(nameof(slackConnectionRepository));
     _addToSlackLinkProvider =
         addToSlackLinkProvider ?? throw new ArgumentNullException(nameof(addToSlackLinkProvider));
     _slackAccessTokenRetriever = slackAccessTokenRetriever ??
                                  throw new ArgumentNullException(nameof(slackAccessTokenRetriever));
 }