Exemple #1
0
        public void FindFindsOption()
        {
            OptionFinder finder = new OptionFinder(Connection);

            DatabaseExposeData.Create(Connection, "test", "test", CreateScheduleAlwaysOnDoOnce());

            List <OptionBase> options = finder.Find();

            Assert.True(options.Count == 1);
            Assert.True(options.Any(option => option.GetType() == typeof(ExposeData)));
        }
        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)));
        }
Exemple #3
0
 public ExposeData(MongoConnection connection, DataLayer.MongoData.Option.OptionBase databaseOption) : base(connection, databaseOption)
 {
     _databaseExposeData = (DatabaseExposeData)databaseOption;
 }