Пример #1
0
        public void CanLoadMultiplePluginAssemblies()
        {
            string source = @"F:\vs10dev\ApprovaFlowSimpleWorkflowProcessor\TestSuite\TestPlugins";

            var filterRegistry = new FilterRegistry<Step>();
            filterRegistry.LoadPlugInsFromShare(source);

            Console.WriteLine(filterRegistry.GetFilterNames());
            Assert.AreEqual(7, filterRegistry.GetFilterCount());
        }
Пример #2
0
        public void CanRegisterPlugins()
        {
            string source = @"F:\vs10dev\ApprovaFlowSimpleWorkflowProcessor\Plugins\bin\Debug\Plugins.dll";

            var filterRegistry = new FilterRegistry<Step>();
            filterRegistry.LoadPlugIn(source);

            //  We should have 4 standard filters and one from the plugin
            Assert.AreEqual(5, filterRegistry.GetFilterCount());
            Console.WriteLine(filterRegistry.GetFilterNames());
        }
Пример #3
0
        public void CanRegisterFilters()
        {
            var filterRegistry = new FilterRegistry<Step>();

            Assert.AreEqual(4, filterRegistry.GetFilterCount());
            Console.WriteLine(filterRegistry.GetFilterNames());
        }