Exemplo n.º 1
0
        /// <summary>
        /// Removes a group (of group tickets) in the back office
        /// </summary>
        /// <param name="name"></param>
        public void RemoveGroup(string name)
        {
            _driverCover.NavigateToUrl(_driverCover.BaseAdminUrl + "admin/groups");
            GroupsPageObj groupsPage = new GroupsPageObj(_driver);

            groupsPage.DeleteGroup(name);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Navigates to groups page (in back office) and check is a ticket exists
        /// </summary>
        /// <param name="group"></param>
        /// <param name="lottery"></param>
        /// <param name="numbers"></param>
        public void IsTicketExists(string group, string lottery, string numbers)
        {
            _driverCover.NavigateToUrl(_driverCover.BaseAdminUrl + "admin/groups");
            GroupsPageObj groupsPage = new GroupsPageObj(_driver);
            bool exists =  groupsPage.IsTicketExists(group, lottery, numbers);

            Assert.IsTrue(exists, "Sorry but the ticket doesn't exist, check it on page: " + _driverCover.Driver.Url + " ");
        }