Exemplo 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);
        }
Exemplo n.º 2
0
        public void Can_create_online_from_cashier_page_by_entering_the_amount(string amount)
        {
            var _onlineDepositPage = _cashierPage.OpenOnlineDepositPage();

            //enter deposit amount manually
            _onlineDepositPage.EnterDepositAmount(amount);

            //submit deposit request
            _onlineDepositPage.SubmitOnlineDeposit();

            var _fakePaymentServerPage = new FakePaymentServerPage(_driver);

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

            //Notify and Redirect
            _fakePaymentServerPage.NotifyAndRedirect();

            Assert.IsTrue(_onlineDepositPage.GetDepositConfirmedValue().Contains(amount));
            // fix amount formatting for assert
            Assert.AreEqual(amount, _onlineDepositPage.GetBalanceAmount().Replace(",", String.Empty));
        }
Exemplo n.º 3
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());
        }