public void AddTestOption(Schedule.ActionOnFailEnum actionOnFail, int sleepForSeconds, bool throwException) { Test test = Test.Create(Connection, "test", CreateScheduleAlwaysOnDoOnce(), sleepForSeconds, throwException); test.Schedule.ActionOnFail = actionOnFail; test.UpdateOption(Connection); }
public void AddExposeDataOption(Schedule.ActionOnFailEnum actionOnFail) { ExposeData exposeData = ExposeData.Create(Connection, "test", "test", CreateScheduleAlwaysOnDoOnce()); exposeData.exposeName = "test.json"; exposeData.exposePath = "heartTest"; exposeData.fetchXmlPath = "Dynamics/Crm/FetchXml/Account/plant.xml"; exposeData.Schedule.ActionOnFail = actionOnFail; exposeData.UpdateOption(Connection); }