Пример #1
0
 public OperationProvider(IOperationRepository operationRepository,
                          IProviderClient providerClient,
                          ProviderSettings providerSettings)
 {
     _operationRepository = operationRepository;
     _providerClient      = providerClient;
     _providerSettings    = providerSettings;
 }
Пример #2
0
 public ApiKeyProvider(IApiKeyRepository apiKeyRepository,
                       IProviderClient providerClient,
                       ProviderSettings providerSettings)
 {
     _apiKeyRepository = apiKeyRepository;
     _providerClient   = providerClient;
     _providerSettings = providerSettings;
 }
 public GroupProvider(IProviderClient provider,
                      IGroupRepository groupRepository,
                      IGroupServiceClient serviceClient)
 {
     _provider        = provider;
     _groupRepository = groupRepository;
     _serviceClient   = serviceClient;
 }
 public OrganizationProvider(IProviderClient provider,
                             IOrganizationRepository organizationRepository,
                             IGroupServiceClient serviceClient)
 {
     _provider = provider;
     _organizationRepository = organizationRepository;
     _serviceClient          = serviceClient;
 }
Пример #5
0
 public NotificationProvider(IProviderClient providerClient,
                             INotificationServiceClient serviceClient,
                             IUserNotificationSettingsRepository repository)
 {
     _providerClient = providerClient;
     _serviceClient  = serviceClient;
     _repository     = repository;
 }
Пример #6
0
 public UserProvider(IUserRepository userRepository,
                     IProviderClient providerClient,
                     ProviderSettings providerSettings)
 {
     _userRepository   = userRepository;
     _providerClient   = providerClient;
     _providerSettings = providerSettings;
 }
Пример #7
0
 public OperationProvider(IProviderClient provider,
                          IOperationRepository operationRepository,
                          IOperationServiceClient serviceClient)
 {
     _provider            = provider;
     _operationRepository = operationRepository;
     _serviceClient       = serviceClient;
 }
Пример #8
0
#pragma warning restore S2743 // Static fields should not be used in generic types

        public ExternalProviderStore(PersistentDynamicManager <SchemeDefinition> manager,
                                     IAuthenticationSchemeOptionsSerializer serializer,
                                     ConfigurationDbContext context,
                                     IProviderClient providerClient = null)
        {
            _manager        = manager ?? throw new ArgumentNullException(nameof(manager));
            _serializer     = serializer ?? throw new ArgumentNullException(nameof(serializer));
            _context        = context ?? throw new ArgumentNullException(nameof(context));
            _providerClient = providerClient;
        }
 public UserProvider(IProviderClient providerClient,
                     IUserRepository userRepository,
                     IUserSessionRepository userSessionRepository,
                     IUserServiceClient userServiceClient)
 {
     _providerClient        = providerClient;
     _userRepository        = userRepository;
     _userSessionRepository = userSessionRepository;
     _userServiceClient     = userServiceClient;
 }
Пример #10
0
 public NotifyChangedExternalProviderStore(TStore parent,
                                           IProviderClient providerClient,
                                           PersistentDynamicManager <SchemeDefinition> manager,
                                           IAuthenticationSchemeOptionsSerializer serializer)
 {
     _parent         = parent ?? throw new ArgumentNullException(nameof(parent));
     _providerClient = providerClient ?? throw new ArgumentNullException(nameof(providerClient));
     _manager        = manager ?? throw new ArgumentNullException(nameof(parent));
     _serializer     = serializer ?? throw new ArgumentNullException(nameof(serializer));
 }
Пример #11
0
 public ExternalProviderStore(PersistentDynamicManager <SchemeDefinition> manager,
                              IAuthenticationSchemeOptionsSerializer serializer,
                              ScopedAsynDocumentcSession session,
                              IProviderClient providerClient = null)
 {
     _manager        = manager ?? throw new ArgumentNullException(nameof(manager));
     _serializer     = serializer ?? throw new ArgumentNullException(nameof(serializer));
     _session        = session?.Session ?? throw new ArgumentNullException(nameof(session));
     _providerClient = providerClient;
 }
Пример #12
0
 public RemarkProvider(IProviderClient provider,
                       IRemarkRepository remarkRepository,
                       IRemarkCategoryRepository categoryRepository,
                       IGroupRepository groupRepository,
                       ITagRepository tagRepository,
                       IReportRepository reportRepository,
                       IRemarkServiceClient serviceClient)
 {
     _provider           = provider;
     _remarkRepository   = remarkRepository;
     _categoryRepository = categoryRepository;
     _groupRepository    = groupRepository;
     _tagRepository      = tagRepository;
     _reportRepository   = reportRepository;
     _serviceClient      = serviceClient;
 }
        protected static void Initialize()
        {
            ServiceClientMock = new Mock <IServiceClient>();
            StorageMock       = new Mock <IStorage>();
            EmptyStorageMock  = new Mock <IStorage>();

            ProviderClient = new ProviderClient();

            var obj = new object();
            var collection = new[] { new object(), new object() }.PaginateWithoutLimit();

            StorageMock.Setup(x => x.FetchAsync()).ReturnsAsync(obj);
            StorageMock.Setup(x => x.FetchCollectionAsync()).ReturnsAsync(collection);
            EmptyStorageMock.Setup(x => x.FetchAsync()).ReturnsAsync(Maybe <object> .Empty);
            EmptyStorageMock.Setup(x => x.FetchCollectionAsync()).ReturnsAsync(Maybe <PagedResult <object> > .Empty);
        }
 public StatisticsProvider(IProviderClient providerClient,
                           IStatisticsServiceClient statisticsServiceClient)
 {
     _providerClient          = providerClient;
     _statisticsServiceClient = statisticsServiceClient;
 }
Пример #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyManagerWrapper{T}" /> class.
 /// </summary>
 /// <param name="keyManager">The key manager.</param>
 /// <param name="defaultKeyResolver">The default key resolver.</param>
 /// <param name="providerClient">The provider client.</param>
 /// <exception cref="ArgumentNullException">
 /// keyManager
 /// or
 /// defaultKeyResolver
 /// or
 /// providerClient
 /// </exception>
 /// <exception cref="ArgumentNullException">keyManager
 /// or
 /// defaultKeyResolver</exception>
 public KeyManagerWrapper(IKeyManager keyManager, IDefaultKeyResolver defaultKeyResolver, IProviderClient providerClient)
 {
     _keyManager         = keyManager ?? throw new ArgumentNullException(nameof(keyManager));
     _defaultKeyResolver = defaultKeyResolver ?? throw new ArgumentNullException(nameof(defaultKeyResolver));
     _providerClient     = providerClient ?? throw new ArgumentNullException(nameof(providerClient));
 }