Exemplo n.º 1
0
        public void DialogsTestTest06SaverJSON()
        {
            Event          obj    = CreateObject();
            ApplicationTag apptag = new ApplicationTag();
            Application    app    = new Application();

            app.Name = "APP_EventTest06";
            app.EventContainer.Add(obj);
            apptag.Entity = app;

            SaverJson saver = new SaverJson();

            saver.ExportApplicationTag(@".\Data\", apptag);

            Assert.True(Directory.Exists(@".\Data\APP_EventTest06\Events"));

            var fileCount = (from file in Directory.EnumerateFiles(@".\Data\APP_EventTest06\Events", "*.EasyBpart", SearchOption.AllDirectories)
                             select file).Count();

            Assert.True(fileCount == 1);
        }
Exemplo n.º 2
0
        public void WorkflowQueryCommandTest06SaverJSON()
        {
            WorkflowQueryCommand obj    = CreateObject();
            ApplicationTag       apptag = new ApplicationTag();
            Application          app    = new Application();

            app.Name = "APP_WorkflowQueryCommandTest06";
            app.WorkflowQueryCommandContainer.Add(obj);
            apptag.Entity = app;

            SaverJson saver = new SaverJson();

            saver.ExportApplicationTag(@".\Data\", apptag);

            Assert.IsTrue(Directory.Exists(@".\Data\APP_WorkflowQueryCommandTest06\Queries"));

            var fileCount = (from file in Directory.EnumerateFiles(@".\Data\APP_WorkflowQueryCommandTest06\Queries", "*.EasyBpart", SearchOption.AllDirectories)
                             select file).Count();

            Assert.IsTrue(fileCount == 1);
        }
Exemplo n.º 3
0
        public void FieldTypeTest06SaverJSON()
        {
            FieldType      fieldtype = CreateFieldType();
            ApplicationTag apptag    = new ApplicationTag();
            Application    app       = new Application();

            app.Name = "APP_FieldTypeTest06";
            app.FieldTypeContainer.Add(fieldtype);
            apptag.Entity = app;

            SaverJson saver = new SaverJson();

            saver.ExportApplicationTag(@".\Data\", apptag);

            Assert.True(Directory.Exists(@".\Data\APP_FieldTypeTest06\FieldTypes"));

            var fileCount = (from file in Directory.EnumerateFiles(@".\Data\APP_FieldTypeTest06\FieldTypes", "*.EasyBpart", SearchOption.AllDirectories)
                             select file).Count();

            Assert.True(fileCount == 1);
        }