async void BtnTicket(object sender, ItemTappedEventArgs e) { var ClubItem = (Clubs)e.Item; var clubpage = new TicketPage { BindingContext = ClubItem }; await Navigation.PushAsync(clubpage); }
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); }
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); }
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; } } }
public void WhenIClickOKOnTheCommentPopupWindow() { log.Info("Clicking OK on the comment popup window"); TicketPage.ClickOkOnCommentPopup(); }