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 void ThenTheTicketShouldDisplayTheCorrectData(string module, Table table) { data = ModuleDataSwitch.CreateModuleDataObject(module, table); if (data == null) { Assert.Fail("Data was not found"); log.Error("Data was not found"); } VerifyFieldValuesSwitch.VerifyFieldValues(module, data); }
public void ThenTheTicketShouldDisplayTheCorrectServiceRequestDataOfType(string ticketType, Table table) { ServiceRequestData srData = (ServiceRequestData)ModuleDataSwitch.CreateSRModuleDataObject(ticketType, table); if (data == null) { Assert.Fail("Data was not found"); log.Error("data was not found"); } VerifyFieldValuesSwitch.VerifySRFieldValues(ticketType, srData); }