Ejemplo n.º 1
0
        public override void BeforeEach()
        {
            base.BeforeEach();

            _authQueries  = Container.Resolve <IAuthQueries>();
            _authCommands = Container.Resolve <IAuthCommands>();
        }
Ejemplo n.º 2
0
 public RoleService(
     ISecurityRepository repository,
     IActorInfoProvider actorInfoProvider,
     IEventBus eventBus,
     IAuthCommands authCommands)
 {
     _repository        = repository;
     _eventBus          = eventBus;
     _authCommands      = authCommands;
     _actorInfoProvider = actorInfoProvider;
 }
Ejemplo n.º 3
0
 public AdminCommands(
     ISecurityRepository repository,
     IEventBus eventBus,
     IAuthCommands authCommands,
     IActorInfoProvider actorInfoProvider
     )
 {
     _repository        = repository;
     _eventBus          = eventBus;
     _authCommands      = authCommands;
     _actorInfoProvider = actorInfoProvider;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initialises the Ably Auth type based on the options passed.
 /// </summary>
 internal void InitAuth(IAblyRest restClient)
 {
     _auth      = new AblyTokenAuth(Options, restClient);
     AuthMethod = Options.Method;
     if (AuthMethod == AuthMethod.Basic)
     {
         Logger.Info("Using basic authentication.");
         return;
     }
     Logger.Info("Using token authentication.");
     if (Options.Token.IsNotEmpty())
     {
         CurrentToken = new TokenDetails(Options.Token);
     }
     LogCurrentAuthenticationMethod();
 }
Ejemplo n.º 5
0
 public SecurityTestHelper(
     IActorInfoProvider actorInfoProvider,
     ISecurityRepository securityRepository,
     RoleService roleService,
     BrandQueries brandQueries,
     IAuthQueries authQueries,
     ApplicationSeeder applicationSeeder,
     IAuthCommands authCommands,
     IAuthRepository authRepository,
     IAdminCommands adminCommands,
     ClaimsIdentityProvider identityProvider, BrandIpRegulationService brandIpRegulationService)
 {
     _actorInfoProvider        = actorInfoProvider;
     _securityRepository       = securityRepository;
     _roleService              = roleService;
     _brandQueries             = brandQueries;
     _authQueries              = authQueries;
     _applicationSeeder        = applicationSeeder;
     _authCommands             = authCommands;
     _authRepository           = authRepository;
     _adminCommands            = adminCommands;
     _identityProvider         = identityProvider;
     _brandIpRegulationService = brandIpRegulationService;
 }
Ejemplo n.º 6
0
 public UserModel(IEntityRepository repository, ICurrentSession currentSession, IAuthCommands authCommands)
 {
     _repository     = repository;
     _currentSession = currentSession;
     _authCommands   = authCommands;
 }
Ejemplo n.º 7
0
 public ApplicationSeeder(
     IRepositoryBase repositoryBase,
     IBrandRepository brandRepository,
     ILicenseeCommands licenseeCommands,
     ICurrencyCommands currencyCommands,
     IBrandCommands brandCommands,
     ICultureCommands cultureCommands,
     IPlayerRepository playerRepository,
     IBrandOperations walletCommands,
     PlayerCommands playerCommands,
     IAuthCommands authCommands,
     IAuthRepository authRepository,
     RoleService roleService,
     ISecurityRepository securityRepository,
     IBankCommands bankCommands,
     IBankAccountCommands bankAccountCommands,
     IPaymentLevelCommands paymentLevelCommands,
     RiskLevelCommands riskLevelCommands,
     IPaymentRepository paymentRepository,
     IGameRepository gameRepository,
     IGameManagement gameManagement,
     ICurrencyExchangeCommands currencyExchangeCommands,
     ContentTranslationCommands contentTranslationCommands,
     BackendIpRegulationService backendIpRegulationService,
     BrandIpRegulationService brandIpRegulationService,
     IPaymentGatewaySettingsCommands paymentGatewaySettingsCommands,
     ISettingsCommands settingsCommands,
     ISettingsRepository settingsRepository,
     ICommonSettingsProvider settingsProvider,
     IMassMessageCommands massMessageCommands,
     IMessagingRepository messagingRepository,
     IEventRepository eventRepository,
     IEventBus eventBus)
 {
     _repositoryBase                 = repositoryBase;
     _brandRepository                = brandRepository;
     _licenseeCommands               = licenseeCommands;
     _currencyCommands               = currencyCommands;
     _brandCommands                  = brandCommands;
     _cultureCommands                = cultureCommands;
     _playerCommands                 = playerCommands;
     _authCommands                   = authCommands;
     _authRepository                 = authRepository;
     _roleService                    = roleService;
     _securityRepository             = securityRepository;
     _playerRepository               = playerRepository;
     _walletCommands                 = walletCommands;
     _bankCommands                   = bankCommands;
     _bankAccountCommands            = bankAccountCommands;
     _paymentLevelCommands           = paymentLevelCommands;
     _riskLevelCommands              = riskLevelCommands;
     _paymentRepository              = paymentRepository;
     _gameRepository                 = gameRepository;
     _gameManagement                 = gameManagement;
     _currencyExchangeCommands       = currencyExchangeCommands;
     _contentTranslationCommands     = contentTranslationCommands;
     _backendIpRegulationService     = backendIpRegulationService;
     _brandIpRegulationService       = brandIpRegulationService;
     _paymentGatewaySettingsCommands = paymentGatewaySettingsCommands;
     _settingsCommands               = settingsCommands;
     _settingsRepository             = settingsRepository;
     _settingsProvider               = settingsProvider;
     _massMessageCommands            = massMessageCommands;
     _messagingRepository            = messagingRepository;
     _eventRepository                = eventRepository;
     _eventBus = eventBus;
 }