public void User_fail_AVC_check_when_player_did_not_meet_the_defined_rule_for_the_total_deposit_amount_criteria
            (string withdrawalAmount, int criteriaAmount)
        {
            _avcConfigurationBuilder.SetupTotalDepositAmount(criteriaAmount, ComparisonEnum.GreaterOrEqual);
            _autoVerificationConfigurationTestHelper.UpdateConfiguration(_avcDTO);

            //create a withdrawal request
            OfflineWithdrawRequestData withdrawRequestData = new OfflineWithdrawRequestData();

            withdrawRequestData.Amount  = withdrawalAmount;
            withdrawRequestData.Remarks = Guid.NewGuid().ToString();

            _playerManagerPage.SelectPlayer(_playerUsername);
            var offlineWithdrawalRequestForm = _playerManagerPage.OpenOfflineWithdrawRequestForm(_playerUsername);

            offlineWithdrawalRequestForm.SetOfflineWithdrawRequest(withdrawRequestData);
            Assert.AreEqual("Offline withdraw request has been successfully submitted",
                            offlineWithdrawalRequestForm.ValidationMessage);
            _playerManagerPage.CloseTab("View Offline Withdraw Request");

            //Navigate to Verification Queue
            var _verificationQueuePage = _dashboardPage.Menu.ClickVerificationQueueMenuItem();

            //Verify the record is present in Verification Queue
            var record = _verificationQueuePage.FindAndSelectWithdrawalRecord(_playerUsername, withdrawalAmount);

            Assert.AreNotEqual(record, null);

            //Verify status
            Assert.AreEqual("New", _verificationQueuePage.GetWithdrawalStatus(record));

            //go to the initial state uncheck criteria
            _avcDTO.HasTotalDepositAmount = false;
            _autoVerificationConfigurationTestHelper.UpdateConfiguration(_avcDTO);
        }
        public void Can_create_bank_account_and_bind_to_player_record()
        {
            var playerData            = TestDataGenerator.CreateValidPlayerDataForAdminWebsite(DefaultLicensee, DefaultBrand);
            var playerBankAccountData = new PlayerBankAccountData
            {
                BankName          = "Bank of Canada",
                Province          = TestDataGenerator.GetRandomString(),
                City              = TestDataGenerator.GetRandomString(),
                Branch            = TestDataGenerator.GetRandomString(),
                SwiftCode         = TestDataGenerator.GetRandomString(),
                Address           = TestDataGenerator.GetRandomString(),
                BankAccountName   = TestDataGenerator.GetRandomString(),
                BankAccountNumber = TestDataGenerator.GetRandomString(7, "0123456789")
            };

            // create a player
            var newPlayerForm = _playerManagerPage.OpenNewPlayerForm();
            var submittedForm = newPlayerForm.Register(playerData);

            Assert.AreEqual("The player has been successfully created", submittedForm.ConfirmationMessage);
            submittedForm.CloseTab("View Player");

            //create bank account
            var _playerInfoPage = _playerManagerPage.OpenPlayerInfoPage(playerData.LoginName);

            _playerInfoPage.OpenBankAccountsSection();
            var _newBankAccountForm       = _playerInfoPage.OpenNewBankAccountTab();
            var _submittedBankAccountForm = _newBankAccountForm.Submit(playerBankAccountData);

            Assert.AreEqual("The bank account has been successfully created", _submittedBankAccountForm.ConfirmationMessage);
            _playerManagerPage.CloseTab("View Bank Account");
            _playerManagerPage.CloseTab("Player Info");

            //verify bank account
            var playerBankAccountVerifyPage = _playerManagerPage.Menu.ClickPlayerBankAccountVerifyMenuItem();

            playerBankAccountVerifyPage.Verify(playerBankAccountData.BankAccountName);

            //open withdraw request form
            _playerManagerPage = _dashboardPage.Menu.ClickPlayerManagerMenuItem();
            _playerManagerPage.SelectPlayer(playerData.LoginName);
            var withdrawRequestForm = _playerManagerPage.OpenOfflineWithdrawRequestForm(playerData.LoginName);

            Assert.AreEqual(playerBankAccountData.BankName, withdrawRequestForm.BankNameValue);
            Assert.AreEqual(playerBankAccountData.Province, withdrawRequestForm.ProvinceValue);
            Assert.AreEqual(playerBankAccountData.City, withdrawRequestForm.CityValue);
            Assert.AreEqual(playerBankAccountData.BankAccountName, withdrawRequestForm.BankAccountNameValue);
            Assert.AreEqual(playerBankAccountData.BankAccountNumber, withdrawRequestForm.BankAccountNumberValue);
        }
Example #3
0
        public void Can_set_high_risk_level_when_player_hits_the_defined_rule_for_the_deposit_count_criteria(
            string withdrawalAmount, int criteriaCount)
        {
            _riskProfileCheckConfigurationBuilder.SetupDepositCount(criteriaCount, ComparisonEnum.GreaterOrEqual);
            _riskProfileCheckTestHelper.UpdateConfiguration(_rpcDTO);

            //create a withdrawal request
            OfflineWithdrawRequestData withdrawRequestData = new OfflineWithdrawRequestData();

            withdrawRequestData.Amount  = withdrawalAmount;
            withdrawRequestData.Remarks = Guid.NewGuid().ToString();

            _playerManagerPage.SelectPlayer(_playerUsername);
            var offlineWithdrawalRequestForm = _playerManagerPage.OpenOfflineWithdrawRequestForm(_playerUsername);

            offlineWithdrawalRequestForm.SetOfflineWithdrawRequest(withdrawRequestData);
            Assert.AreEqual("Offline withdraw request has been successfully submitted",
                            offlineWithdrawalRequestForm.ValidationMessage);
            _playerManagerPage.CloseTab("View Offline Withdraw Request");

            //Navigate to Verification Queue
            var _verificationQueuePage = _dashboardPage.Menu.ClickVerificationQueueMenuItem();

            //Verify the record is present in Verification Queue
            var record = _verificationQueuePage.FindAndSelectWithdrawalRecord(_playerUsername, withdrawalAmount);

            Assert.AreNotEqual(record, null);

            //Verify Risk Profile check result
            Assert.IsTrue(_verificationQueuePage.GetWithdrawalRiskProfileCheckResult(record).Contains("High"));

            //go to the initial state uncheck criteria
            _rpcDTO.HasDepositCount = false;
            _riskProfileCheckTestHelper.UpdateConfiguration(_rpcDTO);
        }
Example #4
0
        public void Can_tag_withdrawal_request_to_Docs(string amount)
        {
            //create a withdrawal request
            OfflineWithdrawRequestData withdrawRequestData = new OfflineWithdrawRequestData();

            withdrawRequestData.Amount  = amount;
            withdrawRequestData.Remarks = Guid.NewGuid().ToString();

            _playerManagerPage.SelectPlayer(_playerUsername);
            var offlineWithdrawalRequestForm = _playerManagerPage.OpenOfflineWithdrawRequestForm(_playerUsername);

            offlineWithdrawalRequestForm.SetOfflineWithdrawRequest(withdrawRequestData);
            Assert.AreEqual("Offline withdraw request has been successfully submitted", offlineWithdrawalRequestForm.ValidationMessage);
            _playerManagerPage.CloseTab("View Offline Withdraw Request");

            //Navigate to Verification Queue
            var _verificationQueuePage = _dashboardPage.Menu.ClickVerificationQueueMenuItem();

            //Verify the record is present in Verification Queue
            var record = _verificationQueuePage.FindAndSelectWithdrawalRecord(_playerUsername, amount);

            Assert.AreNotEqual(record, null);

            //Verify status
            Assert.AreEqual("New", _verificationQueuePage.GetWithdrawalStatus(record));

            var _documentsPage = _verificationQueuePage.OpenDocumentsForm(record);

            _documentsPage.SubmitProcessing("Verification Queue: Tagged to Documents");

            Assert.AreEqual("Offline withdraw request has been successfully tagged for documents investigation", _documentsPage.SuccessAlert.Text);

            _documentsPage.CloseTab("Documents");

            //Verify the record is removed from Verification Queue
            record = _verificationQueuePage.FindAndSelectWithdrawalRecord(_playerUsername, amount);
            Assert.AreEqual(record, null);
            _verificationQueuePage.CloseTab("Verification Queue");

            //Verify the record is moved  to On Hold Queue
            var _onHoldQueuePage = _dashboardPage.Menu.ClickOnHoldQueueMenuItem();

            record = _onHoldQueuePage.FindAndSelectWithdrawalRecord(_playerUsername, amount);
            Assert.AreNotEqual(record, null);

            //Verify the status is Documents
            Assert.AreEqual("Documents", _onHoldQueuePage.GetWithdrawalStatus(record));
        }