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()); }
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()); }
public void CanSerializeFilterDefinitions() { string source = @"F:\vs10dev\ApprovaFlowSimpleWorkflowProcessor\TestSuite\TestPlugins"; string outputSource = @"F:\vs10dev\ApprovaFlowSimpleWorkflowProcessor\TestSuite\TestData\output.json"; var filterRegistry = new FilterRegistry<Step>(); filterRegistry.LoadPlugInsFromShare(source); string json = filterRegistry.SerializeFilterDefinitions(); Assert.AreEqual(7, filterRegistry.GetFilterCount()); Assert.IsTrue(json.Length > 0); WriteFile(json, outputSource); }
public void CanRegisterFilters() { var filterRegistry = new FilterRegistry<Step>(); Assert.AreEqual(4, filterRegistry.GetFilterCount()); Console.WriteLine(filterRegistry.GetFilterNames()); }