public ReplyFactoryTests() { this.replyBuilderMock = new Mock <IReplyBuilder <ReplyMessage> >(); this.genericExpressionFactoryMock = new Mock <IGenericExpressionFactory>(); this.builderFactory = x => this.replyBuilderMock.Object; this.replyFactory = new ReplyFactory(builderFactory, this.genericExpressionFactoryMock.Object); }
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 ReplyHandler(IReplyConfiguration replyConfiguration, IReplyFactory replyFactory) { this.replyFactory = replyFactory; this.replyConfiguration = replyConfiguration; }