Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }