public AutoMovePlugin(IMessageBus messageBus,
                              IAutoMoveRepository autoMoveRepository,
                              IRuleFinder ruleFinder,
                              IParameterValueReplacer parameterValueReplacer)
        {
            if (messageBus == null)
            {
                throw new ArgumentNullException("messageBus");
            }
            if (autoMoveRepository == null)
            {
                throw new ArgumentNullException("autoMoveRepository");
            }
            if (ruleFinder == null)
            {
                throw new ArgumentNullException("ruleFinder");
            }
            if (parameterValueReplacer == null)
            {
                throw new ArgumentNullException("parameterValueReplacer");
            }

            _messageBus             = messageBus;
            _autoMoveRepository     = autoMoveRepository;
            _ruleFinder             = ruleFinder;
            _parameterValueReplacer = parameterValueReplacer;
        }
Beispiel #2
0
 public EntityChangedRulesInterceptor(
     IRuleFinder ruleFinder,
     IEntityRuleContributor entityRuleContributor)
 {
     RuleFinder            = ruleFinder;
     EntityRuleContributor = entityRuleContributor;
 }
        public AutoMovePlugin(IMessageBus messageBus,
            IAutoMoveRepository autoMoveRepository,
            IRuleFinder ruleFinder,
            IParameterValueReplacer parameterValueReplacer)
        {
            if (messageBus == null) throw new ArgumentNullException("messageBus");
            if (autoMoveRepository == null) throw new ArgumentNullException("autoMoveRepository");
            if (ruleFinder == null) throw new ArgumentNullException("ruleFinder");
            if (parameterValueReplacer == null) throw new ArgumentNullException("parameterValueReplacer");

            _messageBus = messageBus;
            _autoMoveRepository = autoMoveRepository;
            _ruleFinder = ruleFinder;
            _parameterValueReplacer = parameterValueReplacer;
        }