Ejemplo n.º 1
0
        private string MakeOnlineDeposit(string amount = "200", bool doNotify = true)
        {
            var balanceInfoPage          = _playerProfilePage.Menu.ClickBalanceInformationMenu();
            var onlineDepositRequestPage = balanceInfoPage.Menu.ClickOnlineDepositSubmenu();
            var fakePaymentServerPage    = onlineDepositRequestPage.Submit(amount: amount);


            if (doNotify)
            {
                fakePaymentServerPage.SubmitNotify();
            }
            else
            {
                fakePaymentServerPage.Cancel();
            }
            fakePaymentServerPage.BackToMemberSite();

            CashierPage       _cashierPage       = _playerProfilePage.Menu.OpenCashierPage();
            DepositOnlinePage _depositOnlinePage = _cashierPage.OpenOnlineDepositPage();

            _depositOnlinePage.EnterDepositAmount(amount);
            _depositOnlinePage.SubmitOnlineDeposit();
            //Verify the deposit amount is correct
            Assert.AreEqual(amount, fakePaymentServerPage.GetAmountValue());
            var referenceCode = fakePaymentServerPage.OrderId;

            fakePaymentServerPage.NotifyAndRedirect();


            return(referenceCode);
        }
Ejemplo n.º 2
0
        public void Can_submit_online_deposit_and_return_to_brand_via_member_site(string amount)
        {
            CashierPage       _cashierPage       = _playerProfilePage.Menu.OpenCashierPage();
            DepositOnlinePage _depositOnlinePage = _cashierPage.OpenOnlineDepositPage();

            _depositOnlinePage.EnterDepositAmount(amount);
            _depositOnlinePage.SubmitOnlineDeposit();
            var _fakePaymentServerPage = new FakePaymentServerPage(_driver);

            //Verify the deposit amount is correct
            Assert.AreEqual(amount, _fakePaymentServerPage.GetAmountValue());
            _fakePaymentServerPage.NotifyAndRedirect();

            Assert.IsTrue(_depositOnlinePage.GetDepositConfirmedValue().Contains(amount));

            Assert.AreEqual(amount, _depositOnlinePage.GetBalanceAmount());
        }