public static ExposeData Create(MongoConnection mongoConnection, string urlLoginName, string name, Schedule schedule) { ExposeData exposeIndsamlingssteder = new ExposeData() { urlLoginName = urlLoginName, }; Create(mongoConnection, exposeIndsamlingssteder, name, schedule); return(exposeIndsamlingssteder); }
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); }
public void ExposeDataExposesDataInFile() { DatabaseExposeData databaseExposeData = new DatabaseExposeData() { Name = "test", Schedule = CreateScheduleAlwaysOnDoOnce(), urlLoginName = "test", fetchXmlPath = "Dynamics/Crm/FetchXml/Account/plant.xml", exposePath = "webinterface", exposeName = "test.txt", }; ExposeData exposeData = new ExposeData(Connection, databaseExposeData); exposeData.ExecuteOption(new Administration.Option.Options.OptionReport(typeof(ExposeDataTest))); }