Beispiel #1
0
        static void Main(string[] args)
        {
            LemonTransform.UseDefaultSevices();

            LemonTransform.InstallPackage <Package1>("package1");

            var engine2 = new CoreDocumentTransformEngine2();

            engine2.Execute("package1");
        }
Beispiel #2
0
        public void PackageExecutionTest001()
        {
            LemonTransform.RegisterServcie <IDataStoreService, FakeDataStoreService>();

            LemonTransform.RegisterDataInput <FakeDataInput>("fakedb");

            LemonTransform.RegisterDataOutput <FakeDataOutput>("fakedb");

            var builder = new PackageBuilder();

            var package = builder.Input("mongo_office_365")
                          .Action(new FakeTransformAction2())
                          .Output("json_office_365")
                          .Build();

            var engine = new CoreDocumentTransformEngine2();

            engine.Execute(package);
        }
Beispiel #3
0
        public void PackageExecutionTest001()
        {
            LemonTransform.RegisterServcie<IDataStoreService, FakeDataStoreService>();

            LemonTransform.RegisterDataInput<FakeDataInput>("fakedb");

            LemonTransform.RegisterDataOutput<FakeDataOutput>("fakedb");

            var builder = new PackageBuilder();

            var package = builder.Input("mongo_office_365")
                   .Action(new FakeTransformAction2())
                   .Output("json_office_365")
                   .Build();

            var engine = new CoreDocumentTransformEngine2();

            engine.Execute(package);
        }