Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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)));
        }