Пример #1
0
        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);
        }
Пример #2
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;
 }
Пример #3
0
 public ReplyHandler(IReplyConfiguration replyConfiguration, IReplyFactory replyFactory)
 {
     this.replyFactory       = replyFactory;
     this.replyConfiguration = replyConfiguration;
 }