示例#1
0
 public FormReplyBuilder(
     IReplyFactory replyFactory,
     IEnumerable <IRouter> routers,
     IGenericExpressionFactory genericExpressionFactory,
     Func <object, IFormReplyCompletionAction> completionActionFactory,
     Func <object, IFormReplyPropertyActiveConstraint> activeConstraintFactory,
     Func <object, IFormReplyPropertyValidator> validatorFactory,
     Func <object, IFormReplyPropertyConfirmation> confirmationFactory
     )
 {
     this.replyFactory             = replyFactory;
     this.routers                  = routers;
     this.genericExpressionFactory = genericExpressionFactory;
     this.completionActionFactory  = completionActionFactory;
     this.activeConstraintFactory  = activeConstraintFactory;
     this.validatorFactory         = validatorFactory;
     this.confirmationFactory      = confirmationFactory;
 }
 public GenericExpressionFactoryTests()
 {
     this.serializerMock           = new Mock <ISerializer>();
     this.genericExpressionFactory = new GenericExpressionFactory(this.serializerMock.Object);
 }
示例#3
0
 public ReplyFactory(Func <object, IReplyBuilder> replyBuilders, IGenericExpressionFactory genericExpressionFactory)
 {
     this.replyBuilders            = replyBuilders;
     this.genericExpressionFactory = genericExpressionFactory;
 }