Beispiel #1
0
 /// <summary>
 /// Adds a group lottery ticket to the cart
 /// </summary>
 /// <param name="lottery"></param>
 public void AddGroupBulkBuyTicketToCart_SalesPanel(string lottery)
 {
     //Add ticket to the cart
     _driverCover.NavigateToUrl(_driverCover.BaseAdminUrl + "admin/orders");
     MenuObj menu = new MenuObj(_driver);
     menu.GoToLotteryPage(lottery);
     GroupGameObj group = new GroupGameObj(_driver);
     group.AddShareToTicket(1, 1);
     group.ClickAddToCartButton();
 }
Beispiel #2
0
        /// <summary>
        /// Adds a regular one draw tickte to the cart in the sales panel
        /// </summary>
        /// <param name="lotteryName"></param>
        public void AddRegularOneDrawTicketToCart_SalesPanel(string lotteryName)
        {
            MenuObj menu = new MenuObj(_driver);
            menu.GoToLotteryPage(lotteryName);
            GroupGameObj group = new GroupGameObj(_driver);
            group.SwitchToSingleTab();

            RegularGameObj game = new RegularGameObj(_driver);
            game.AddToCart();
        }
Beispiel #3
0
        /// <summary>
        /// Adds CC Details and deposits money (other amount) (approves payment). You need previously sign in in the sales panel
        /// </summary>
        /// <param name="amount"></param>
        /// <param name="ifProcess"></param>
        /// <param name="isFailed"></param>
        public void DepositMoney_SalesPanel(double amount, bool ifProcess = true, bool isFailed = false)
        {
            _driverCover.NavigateToUrl(_driverCover.BaseAdminUrl + "admin/orders");
            AddCCDetails_SalesPanel();

            MenuObj menu = new MenuObj(_driver);
            menu.GoToDeposit();

            DepositBoxObj box = new DepositBoxObj(_driver);
            box.DepositOtherAmoun(amount);

            if (ifProcess)
            {
                if (!isFailed)
                {
                    Approve_offline_payment();
                }
                else
                {
                    Fail_offline_payment();
                }
            }
        }
Beispiel #4
0
        /// <summary>
        /// Adds a raffle ticket to the cart in the sales panel. Need previous sign in in the sales panel
        /// </summary>
        /// <param name="raffleName"></param>
        public void AddRaffleTicketToCart_SalesPanel(string raffleName)
        {
            MenuObj menu = new MenuObj(_driver);
            menu.GoToLotteryPage(raffleName);

            RafflePageObj rafflePage = new RafflePageObj(_driver);
            rafflePage.AddShareToTicket(1, 1);
            rafflePage.ClickAddToCartButton();
        }