public void Change_Default_Deposit_Amount() { _commonActions.SignIn_in_admin_panel(); string defaultValue =_commonActions.Change_Amount_Of_Default_Deposit("1"); _commonActions.Log_In_Front_PageOne(_driverCover.LoginThree, _driverCover.Password); _driverCover.NavigateToUrl(_driverCover.BaseUrl + "en/account/deposits/new/"); DepositMobileObj depositPage = new DepositMobileObj(_driver); string defaultValueFront = depositPage.GetSelectedAmount(); Assert.AreEqual(defaultValue, defaultValueFront, "Sorry but default amount is not as expected. Current page is: " + _driverCover.Driver.Url + " "); }
/// <summary> /// Deposits money to the user's balance /// </summary> /// <param name="merchant"></param> private void Deposit_Money(WayToPay merchant) { _email = _commonActions.Log_In_Front_PageOne(_driverCover.LoginTwo, _driverCover.Password); _driverCover.NavigateToUrl(_driverCover.BaseUrl + "en/account/deposits/new/"); DepositMobileObj deposit = new DepositMobileObj(_driver); _balanceBeforePayment = deposit.Balance; deposit.DepositOtherAmount(_depositAmount, merchant); }
public void One_Plus_One_Promotion_Deposit() { //Sign up _commonActions.Sign_Up_Mobile(); _driverCover.NavigateToUrl(_driverCover.BaseUrl + "en/account/deposits/new/"); DepositMobileObj deposit = new DepositMobileObj(_driver); deposit.DepositOtherAmount(17, _merchant); _verifications.CheckBalanceOnDepositPage_Mobile(34); }
/// <summary> /// Deposits exact amount of money to the previously signed in user's account on mobile /// </summary> /// <param name="amount"></param> /// <param name="merchant">Merchant to pay</param> /// <param name="ifProcess">Tells if process the payment or leave it pendant</param> /// <param name="isFailed">To fail payment of not</param> public void DepositMoney_Mobile(double amount, WayToPay merchant, bool ifProcess = true, bool isFailed = false) { _driverCover.NavigateToUrl(_driverCover.BaseUrl + "en/account/deposits/new/"); DepositMobileObj deposit = new DepositMobileObj(_driver); deposit.DepositOtherAmount(amount, merchant, ifProcess, isFailed); }