public override void BeforeEach()
        {
            base.BeforeEach();

            _riskQueries  = Container.Resolve <IRiskLevelQueries>();
            _riskCommands = Container.Resolve <IRiskLevelCommands>();
            Container.Resolve <RiskLevelWorker>().Start();
        }
 protected CommonWithdrawalValidationService(
     IPaymentRepository paymentRepository,
     IRiskLevelQueries riskLevelQueries,
     IWalletQueries walletQueries)
 {
     _paymentRepository = paymentRepository;
     _riskLevelQueries  = riskLevelQueries;
     _walletQueries     = walletQueries;
 }
Exemple #3
0
 public FraudController(
     IRiskLevelCommands commands,
     IRiskLevelQueries queries,
     BrandQueries brandQueries,
     IAdminQueries adminQueries)
 {
     _commands     = commands;
     _queries      = queries;
     _brandQueries = brandQueries;
     _adminQueries = adminQueries;
 }
        public override void BeforeEach()
        {
            base.BeforeEach();

            _riskQueries  = Container.Resolve <IRiskLevelQueries>();
            _riskCommands = Container.Resolve <IRiskLevelCommands>();

            var securityTestHelper = Container.Resolve <SecurityTestHelper>();

            securityTestHelper.PopulatePermissions();
            securityTestHelper.CreateAndSignInSuperAdmin();
            Container.Resolve <RiskLevelWorker>().Start();
        }
        public override void BeforeEach()
        {
            base.BeforeEach();

            Balance = new BonusBalance();
            var bonusApiMock = new Mock <IBonusApiProxy>();

            bonusApiMock.Setup(proxy => proxy.GetPlayerBalanceAsync(It.IsAny <Guid>(), It.IsAny <Guid?>())).ReturnsAsync(Balance);
            Container.RegisterInstance(bonusApiMock.Object);

            Container.Resolve <PaymentWorker>().Start();

            _withdrawalService = Container.Resolve <IWithdrawalService>();
            _playerQueries     = Container.Resolve <PlayerQueries>();
            _paymentRepository = Container.Resolve <FakePaymentRepository>();
            _paymentTestHelper = Container.Resolve <PaymentTestHelper>();
            _withdrawalVerificationLogsQueues = Container.Resolve <IWithdrawalVerificationLogsQueues>();
            _riskLevelQueries = Container.Resolve <IRiskLevelQueries>();

            var securityTestHelper = Container.Resolve <SecurityTestHelper>();

            securityTestHelper.PopulatePermissions();
            securityTestHelper.CreateAndSignInSuperAdmin();
            _gamesTestHelper = Container.Resolve <GamesTestHelper>();

            var brandHelper = Container.Resolve <BrandTestHelper>();
            var brand       = brandHelper.CreateActiveBrandWithProducts();

            _brandQueries = Container.Resolve <BrandQueries>();

            _actorInfoProvider = Container.Resolve <IActorInfoProvider>();

            _avcConfigurationCommands = Container.Resolve <IAVCConfigurationCommands>();
            _riskProfileCheckCommands = Container.Resolve <IRiskProfileCheckCommands>();

            var player = Container.Resolve <PlayerTestHelper>().CreatePlayer();

            _paymentTestHelper.CreatePlayerBankAccount(player.Id, brand.Id, true);
            _observedBrand = _brandQueries.GetBrands().First();

            brandHelper.CreateRiskLevel(_observedBrand.Id);

            //Replace with risk levels from fraud repository
            var availableRiskLevels = _riskLevelQueries.GetByBrand(_observedBrand.Id);

            _observedRiskLevel = availableRiskLevels.FirstOrDefault().Id;

            _riskLevelDifferentThanObserved = availableRiskLevels.First(rl => rl.Id != _observedRiskLevel).Id;
        }
 public RiskProfileCheckController(
     IRiskProfileCheckCommands riskProfileCheckCommands,
     IRiskProfileCheckQueries riskProfileCheckQueries,
     ISecurityRepository securityRepository,
     IRiskLevelQueries riskLevelQueries,
     IFraudRepository repository,
     IGameRepository gameRepository)
 {
     _riskProfileCheckCommands = riskProfileCheckCommands;
     _riskProfileCheckQueries  = riskProfileCheckQueries;
     _securityRepository       = securityRepository;
     _riskLevelQueries         = riskLevelQueries;
     _repository     = repository;
     _gameRepository = gameRepository;
 }
Exemple #7
0
 public RiskProfileCheckValidationService(
     IRiskProfileCheckQueries riskProfileCheckQueries,
     IPaymentRepository paymentRepository,
     IRiskLevelQueries riskLevelQueries,
     IWithdrawalVerificationLogsCommands logsCommands,
     IWalletQueries walletQueries,
     IGameRepository gameRepository,
     IBonusApiProxy bonusApiProxy)
     : base(paymentRepository, riskLevelQueries, walletQueries)
 {
     _riskProfileCheckQueries = riskProfileCheckQueries;
     _paymentRepository       = paymentRepository;
     _logsCommands            = logsCommands;
     _gameRepository          = gameRepository;
     _bonusApiProxy           = bonusApiProxy;
 }
 public BonusTemplateController(
     BrandQueries brandQueries,
     IGameQueries gameQueries,
     IRiskLevelQueries riskLevelQueries,
     IMessageTemplateQueries messageTemplateQueries,
     IAuthQueries authQueries,
     IAdminQueries adminQueries,
     IBonusApiProxy bonusApiProxy)
     : base(authQueries, adminQueries)
 {
     _brandQueries           = brandQueries;
     _adminQueries           = adminQueries;
     _bonusApiProxy          = bonusApiProxy;
     _gameQueries            = gameQueries;
     _riskLevelQueries       = riskLevelQueries;
     _messageTemplateQueries = messageTemplateQueries;
 }
Exemple #9
0
 public AVCValidationService(
     IAVCConfigurationQueries avcConfigurationQueries,
     IPaymentRepository paymentRepository,
     IRiskLevelQueries riskLevelQueries,
     IGameQueries gameQueries,
     IWalletQueries walletQueries,
     IWithdrawalVerificationLogsCommands logsCommands,
     IWithdrawalVerificationLogsQueues withdrawalVerificationLogsQueues,
     IEventBus eventBus, IPlayerIdentityValidator identityValidator)
     : base(paymentRepository, riskLevelQueries, walletQueries)
 {
     _avcConfigurationQueries          = avcConfigurationQueries;
     _paymentRepository                = paymentRepository;
     _gameQueries                      = gameQueries;
     _logsCommands                     = logsCommands;
     _withdrawalVerificationLogsQueues = withdrawalVerificationLogsQueues;
     _eventBus          = eventBus;
     _identityValidator = identityValidator;
 }
Exemple #10
0
 public AutoVerificationController(
     IAVCConfigurationCommands avcConfigurationCommands,
     IAVCConfigurationQueries avcConfigurationQueries,
     IRiskLevelQueries riskLevelQueries,
     BrandQueries brandQueries,
     IGameQueries gameQueries,
     ISecurityRepository securityRepository,
     IPaymentLevelQueries paymentQueries,
     IAdminQueries adminQueries)
 {
     _avcConfigurationCommands = avcConfigurationCommands;
     _avcConfigurationQueries  = avcConfigurationQueries;
     _riskLevelQueries         = riskLevelQueries;
     _brandQueries             = brandQueries;
     _gameQueries        = gameQueries;
     _securityRepository = securityRepository;
     _paymentQueries     = paymentQueries;
     _adminQueries       = adminQueries;
 }