示例#1
0
        public AllocationRuleHandlerBuilder HandleWith(
            params SalesGroup[] salesGroups)
        {
            AddHandler(_allocationRuleHandlerFactory
                       .Invoke(SalesPersonCriteria.WithCriteria(salesGroups)));

            return(this);
        }
示例#2
0
 public AllocationRuleHandler(
     SalesPersonStore store,
     SalesPersonCriteria salesPersonCriteria,
     BehaviourConfiguration behaviourConfiguration)
 {
     _store = store;
     _salesPersonCriteria    = salesPersonCriteria;
     _behaviourConfiguration = behaviourConfiguration;
 }