public void Can_set_high_risk_level_when_player_hits_the_defined_rule_for_the_account_age_criteria( string withdrawalAmount, int criteriaDays) { _riskProfileCheckConfigurationBuilder.SetupTotalWithdrawalCountAmount(criteriaDays, 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.HasAccountAge = false; _riskProfileCheckTestHelper.UpdateConfiguration(_rpcDTO); }
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 User_pass_AVC_check_when_player_hits_the_defined_rule_for_the_account_age_criteria( string withdrawalAmount, int criteriaDays) { _avcConfigurationBuilder.SetupAccountAge(criteriaDays, 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"); //Verify the record is moved to On Acceptance Queue var _acceptanceQueuePage = _dashboardPage.Menu.ClickAcceptanceQueueMenuItem(); var record = _acceptanceQueuePage.FindAndSelectWithdrawalRecord(_playerUsername, withdrawalAmount); Assert.AreNotEqual(record, null); //Verify the status is Verified Assert.AreEqual("Verified", _acceptanceQueuePage.GetWithdrawalStatus(record)); //go to the initial state uncheck criteria _avcDTO.HasAccountAge = false; _autoVerificationConfigurationTestHelper.UpdateConfiguration(_avcDTO); }
public ViewOfflineWithdrawRequest SetOfflineWithdrawRequest(OfflineWithdrawRequestData data) { InputAmount.Clear(); InputAmount.SendKeys(data.Amount); InputRemarks.Clear(); InputRemarks.SendKeys(data.Remarks); return(Submit()); }
public void Can_unverify_withdrawal_request_in_verification_queue(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.OpenUnverifyForm(record); _documentsPage.SubmitProcessing("Verification Queue: Unverified."); Assert.AreEqual("Offline withdraw request has been successfully unverified", _documentsPage.SuccessAlert.Text); _documentsPage.CloseTab("Unverify"); //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 not present in On Hold Queue var _onHoldQueuePage = _dashboardPage.Menu.ClickOnHoldQueueMenuItem(); record = _onHoldQueuePage.FindAndSelectWithdrawalRecord(_playerUsername, amount); Assert.AreEqual(record, null); //Verify the record is not present in Acceptance Queue var _acceptanceQueuePage = _dashboardPage.Menu.ClickAcceptanceQueueMenuItem(); record = _acceptanceQueuePage.FindAndSelectWithdrawalRecord(_playerUsername, amount); Assert.AreEqual(record, null); }
protected ViewOfflineWithdrawRequest SubmitOfflineWithdrawalRequest(PlayerRegistrationDataForAdminWebsite playerData, PlayerBankAccountData playerBankAccountData, OfflineWithdrawRequestData withdrawalData) { var dashboardPage = _driver.LoginToAdminWebsiteAsSuperAdmin(); var playerManagerPage = dashboardPage.Menu.ClickPlayerManagerMenuItem(); playerManagerPage.SelectPlayer(playerData.LoginName); var playerInfoPage = playerManagerPage.OpenPlayerInfoPage(); playerInfoPage.OpenBankAccountsSection(); var playerBankAccountForm = playerInfoPage.OpenNewBankAccountTab(); playerBankAccountForm.Submit(playerBankAccountData); playerManagerPage.CloseTab("View Bank Account"); playerManagerPage.CloseTab("Player Info"); var playerBankAccountVerifyPage = playerManagerPage.Menu.ClickPlayerBankAccountVerifyMenuItem(); playerBankAccountVerifyPage.Verify(playerBankAccountData.BankAccountName); dashboardPage = _driver.LoginToAdminWebsiteAsSuperAdmin(); playerManagerPage = dashboardPage.Menu.ClickPlayerManagerMenuItem(); playerManagerPage.SelectPlayer(playerData.LoginName); var withdrawRequestForm = playerManagerPage.OpenOfflineWithdrawRequestForm(playerData.LoginName); return(withdrawRequestForm.SetOfflineWithdrawRequest(withdrawalData)); }