public void Setup() { InitializeProperties(); List <Tuple <string, string> > sdkSteps = new List <Tuple <string, string> >(); List <string> workflows = new List <string>(); mockProcessRepository = new Mock <IProcessRepository>(); systemUnderTest = new WorkflowsPluginsProcessor(mockProcessRepository.Object, MockLogger.Object, sdkSteps, workflows); }
public void AllProcessingTest() { ConsoleLogger.LogLevel = 5; var target = ConnectionHelper.GetOrganizationalServiceSource(); WorkflowsPluginsProcessor processor = new WorkflowsPluginsProcessor(new ProcessRepository(target), new ConsoleLogger(), null, null); processor.ImportStarted(); processor.ImportCompleted(); Assert.IsNotNull(processor); }
public void SomeProcessingTest() { ConsoleLogger.LogLevel = 5; var target = ConnectionHelper.GetOrganizationalServiceSource(); List <Tuple <string, string> > plugins = new List <Tuple <string, string> >() { new Tuple <string, string>("Collection Plan De-Dupe : Create of nhs_supplyplan", "Nhsbt.Donor.Plugins.SupplyPlanDeDuplicate") }; List <string> wflows = new List <string>() { "Appointment – Donor – Blood – Reminder Parent – 1 Day" }; WorkflowsPluginsProcessor processor = new WorkflowsPluginsProcessor(new ProcessRepository(target), new ConsoleLogger(), plugins, wflows); processor.ImportStarted(); processor.ImportCompleted(); Assert.IsNotNull(processor); }