示例#1
0
 public PeopleController(
     IRulesValidator <Person> validator,
     IMapper mapper)
 {
     _validator = validator;
     _mapper    = mapper;
 }
 public MappingRulesEngine(IRulesValidator rulesValidator, IMessageMapper messageMapper, IMissingCommandStrategy missingCommandStrategy)
     : base(rulesValidator, missingCommandStrategy)
 {
     _messageMapper = messageMapper;
 }
示例#3
0
 public ClassicMafiaRules()
 {
     RulesValidator = new ClassicRulesValidator(this);
 }