async void BtnTicket(object sender, ItemTappedEventArgs e)
        {
            var ClubItem = (Clubs)e.Item;

            var clubpage = new TicketPage
            {
                BindingContext = ClubItem
            };
            await Navigation.PushAsync(clubpage);
        }
Пример #2
0
 public void WhenIEnterTheFollowingDataIntoTheNewTicketForm(string module, Table table)
 {
     data = ModuleDataSwitch.CreateModuleDataObject(module, table);
     if (data == null)
     {
         Assert.Fail("Data was not found");
         log.Error("Data was not found");
     }
     TicketPage.FillInTicketFields(module, data);
 }
Пример #3
0
 public void WhenIEnterTheFollowingServiceRequestDataIntoTheNewForm(string srType, Table table)
 {
     data = ModuleDataSwitch.CreateSRModuleDataObject(srType, table);
     if (data == null)
     {
         Assert.Fail("Data wa snot found");
         log.Error("data was not found");
     }
     TicketPage.FillInSRTicketFields(srType, data);
 }
Пример #4
0
        public static void CreateTicket(string module, ModuleData data)
        {
            switch (module)
            {
            case "Incident":
            {
                TicketPage.FillInTicketFields(module, data);
                break;
            }

            case "Problem":
            {
                break;
            }

            default:
            {
                log.Error("This module[" + module + "] does not exist. Check the feature file for errors.");
                Assert.Fail("This module[" + module + "] does not exist. Check the feature file for errors.");
                break;
            }
            }
        }
Пример #5
0
 public void WhenIClickOKOnTheCommentPopupWindow()
 {
     log.Info("Clicking OK on the comment popup window");
     TicketPage.ClickOkOnCommentPopup();
 }