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); }