public PlayerBankAccountController(
     IPlayerBankAccountQueries playerBankAccountQueries,
     IPlayerBankAccountCommands playerBankAccountCommands,
     IAuthQueries authQueries,
     IAdminQueries adminQueries)
     : base(authQueries, adminQueries)
 {
     _playerBankAccountQueries  = playerBankAccountQueries;
     _playerBankAccountCommands = playerBankAccountCommands;
 }
Exemplo n.º 2
0
        public override void BeforeEach()
        {
            base.BeforeEach();

            var userInfoProvider = new FakeActorInfoProvider
            {
                Actor = new ActorInfo {
                    UserName = "******"
                }
            };

            _paymentRepository = Container.Resolve <IPaymentRepository>();
            var paymentQueries         = Container.Resolve <IPaymentQueries>();
            var messageTemplateService = Container.Resolve <IMessageTemplateService>();
            var bus = Container.Resolve <IEventBus>();

            _playerBankAccountCommands = new PlayerBankAccountCommands(_paymentRepository, paymentQueries, userInfoProvider, bus, messageTemplateService);

            _paymentRepository.Banks.Add(new Bank
            {
                Id = Guid.NewGuid(), BrandId = brandId
            });

            _paymentRepository.Brands.Add(new Core.Payment.Data.Brand
            {
                Id         = brandId,
                Name       = brandId.ToString(),
                Code       = "138",
                TimezoneId = "Pacific Standard Time"
            });

            _paymentRepository.Players.Add(new Core.Payment.Data.Player
            {
                Id        = Guid.NewGuid(),
                BrandId   = brandId,
                FirstName = TestDataGenerator.GetRandomString(6),
                LastName  = TestDataGenerator.GetRandomString(6)
            });

            _paymentRepository.SaveChanges();
        }
 public PlayerManagerController(
     PlayerCommands commands,
     PlayerQueries queries,
     BrandQueries brandQueries,
     IPaymentQueries paymentQueries,
     IPlayerBankAccountCommands playerBankAccountCommands,
     IPaymentLevelCommands paymentLevelCommands,
     IPaymentLevelQueries paymentLevelQueries,
     IAuthQueries authQueries,
     IAdminQueries adminQueries)
     : base(authQueries, adminQueries)
 {
     _commands                  = commands;
     _queries                   = queries;
     _brandQueries              = brandQueries;
     _paymentQueries            = paymentQueries;
     _playerBankAccountCommands = playerBankAccountCommands;
     _paymentLevelCommands      = paymentLevelCommands;
     _paymentLevelQueries       = paymentLevelQueries;
     _adminQueries              = adminQueries;
 }
Exemplo n.º 4
0
 public PaymentTestHelper(
     IOfflineDepositCommands offlineDepositCommands,
     IOnlineDepositCommands onlineDepositCommands,
     IPaymentRepository paymentRepository,
     IPlayerRepository playerRepository,
     IMessagingRepository messagingRepository,
     IPaymentSettingsCommands paymentSettingsCommands,
     IBankAccountCommands bankAccountCommands,
     IPlayerBankAccountCommands playerBankAccountCommands,
     ITransferFundCommands transferFundCommands,
     BrandCommands brandCommands,
     IBrandRepository brandRepository,
     IBankCommands bankCommands,
     IPaymentGatewaySettingsCommands paymentGatewaySettingsCommands,
     IGameRepository gameRepository,
     IWalletQueries walletQueries,
     IWithdrawalService withdrawalService
     )
 {
     _offlineDepositCommands    = offlineDepositCommands;
     _onlineDepositCommands     = onlineDepositCommands;
     _paymentRepository         = paymentRepository;
     _playerRepository          = playerRepository;
     _messagingRepository       = messagingRepository;
     _paymentSettingsCommands   = paymentSettingsCommands;
     _bankAccountCommands       = bankAccountCommands;
     _playerBankAccountCommands = playerBankAccountCommands;
     _transferFundCommands      = transferFundCommands;
     _brandCommands             = brandCommands;
     _brandRepository           = brandRepository;
     _bankCommands = bankCommands;
     _paymentGatewaySettingsCommands = paymentGatewaySettingsCommands;
     _gameRepository    = gameRepository;
     _walletQueries     = walletQueries;
     _withdrawalService = withdrawalService;
 }