Exemple #1
0
        protected BaseDispatcherTest(IDispatcher dispatcher)
        {
            LinkCache = new LinkCacheMock();

            Dispatcher = dispatcher;

            LogicInstancesStore         = new LogicInstanceStore();
            DriverNodesStore            = new DriverNodesStore();
            NodeInstanceCache           = new NodeInstanceCacheMock();
            LogicInterfaceInstanceCache = new LogicInterfaceInstanceCacheMock();


            RuleEngineDispatcher = new RuleEngineDispatcher(LinkCache, dispatcher, LogicInstancesStore,
                                                            DriverNodesStore, NodeInstanceCache, LogicInterfaceInstanceCache, NullLogger <RuleEngineDispatcher> .Instance);
        }
        protected BaseDispatcherTest(IDispatcher dispatcher)
        {
            LinkCache = new LinkCacheMock();

            Dispatcher = dispatcher;

            LogicInstancesStore         = new LogicInstanceStore();
            DriverNodesStore            = new DriverNodesStore();
            NodeInstanceCache           = new NodeInstanceCacheMock();
            LogicInterfaceInstanceCache = new LogicInterfaceInstanceCacheMock();

            var notifyMock = new Mock <IRuleInstanceVisuNotify>();

            RuleNotify = notifyMock.Object;

            RuleEngineDispatcher = new RuleEngineDispatcher(LinkCache, dispatcher, LogicInstancesStore,
                                                            DriverNodesStore, NodeInstanceCache, LogicInterfaceInstanceCache, NullLogger <RuleEngineDispatcher> .Instance, RuleNotify);
        }