Ejemplo n.º 1
0
 public SecurityController(
     BrandIpRegulationService regulations,
     IBrandRepository brands,
     LoggingService logging)
 {
     _regulations = regulations;
     _brands      = brands;
     _logging     = logging;
 }
Ejemplo n.º 2
0
 public AdminSteps()
 {
     SecurityTestHelper = Container.Resolve <SecurityTestHelper>();
     SecurityTestHelper.SignInClaimsSuperAdmin();
     BrandHelper   = Container.Resolve <BrandTestHelper>();
     PaymentHelper = Container.Resolve <PaymentTestHelper>();
     BackendIpRegulationService = Container.Resolve <BackendIpRegulationService>();
     BrandIpRegulationService   = Container.Resolve <BrandIpRegulationService>();
 }
Ejemplo n.º 3
0
        public BrandIpRegulationsController(
            BrandIpRegulationService service,
            BrandQueries brands,
            IAuthQueries authQueries,
            IAdminQueries adminQueries)
            : base(authQueries, adminQueries)
        {
            _service      = service;
            _brands       = brands;
            _adminQueries = adminQueries;

            Mapper.CreateMap <BrandIpRegulation, BrandIpRegulationDTO>()
            .ForMember(dest => dest.Licensee, opt => opt.ResolveUsing(src => _brands.GetLicensees().First(l => l.Id == src.LicenseeId).Name))
            .ForMember(dest => dest.Brand, opt => opt.ResolveUsing(src => _brands.GetBrands().Where(b => b.Licensee.Id == src.LicenseeId).First(b => b.Id == src.BrandId).Name))
            .ForMember(dest => dest.RedirectionUrl, opt => opt.ResolveUsing(src => src.BlockingType == "Redirection" ? src.RedirectionUrl : ""))
            .ForMember(dest => dest.CreatedBy, opt => opt.ResolveUsing(src => (src.CreatedBy != null ? src.CreatedBy.Username : null) ?? String.Empty))
            .ForMember(dest => dest.UpdatedBy, opt => opt.ResolveUsing(src => (src.UpdatedBy != null ? src.UpdatedBy.Username : null) ?? String.Empty));
        }
Ejemplo n.º 4
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.º 5
0
        public override void BeforeEach()
        {
            base.BeforeEach();

            _brandService = Container.Resolve <BrandIpRegulationService>();
        }
Ejemplo n.º 6
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;
 }