public RuleContext(RuleInstance ruleInstance, IDispatcher dispatcher, IRuleInstanceVisuNotify notify, ILogger logger, IServerCloudApi api, ILicenseContract licenseContract) { RuleInstance = ruleInstance; Dispatcher = dispatcher; Notify = notify; Logger = logger; CloudApi = api; LicenseContract = licenseContract; }
public RuleEngineDispatcher(ILinkCache linkCache, IDispatcher dispatcher, ILogicInstancesStore logicInstancesStore, IDriverNodesStore driverNodesStore, INodeInstanceCache nodeInstanceCache, ILogicInterfaceInstanceCache logicInterfaceInstanceCache, ILogger <RuleEngineDispatcher> logger, IRuleInstanceVisuNotify ruleInstanceVisuNotifier) { _linkCache = linkCache; _dispatcher = dispatcher; _logicInstancesStore = logicInstancesStore; _driverNodesStore = driverNodesStore; _nodeInstanceCache = nodeInstanceCache; _logicInterfaceInstanceCache = logicInterfaceInstanceCache; _logger = logger; _ruleInstanceVisuNotifier = ruleInstanceVisuNotifier; }
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); }