Exemple #1
0
        public override void Given()
        {
            fluentMvcResolver          = CreateStub <IFluentMvcResolver>();
            actionFilterRegistry       = CreateStub <IActionFilterRegistry>();
            actionResultRegistry       = CreateStub <IActionResultRegistry>();
            filterConventionCollection = CreateStub <IFilterConventionCollection>();

            Configuration = FluentMvcConfiguration
                            .Create(fluentMvcResolver, actionFilterRegistry, actionResultRegistry, filterConventionCollection);
        }
 public void SetActionResultRegistry(IActionResultRegistry registry)
 {
     actionResultRegistry = registry;
 }
 public ActionResultResolver(IActionResultRegistry actionResultRegistry, IFluentMvcObjectFactory objectFactory)
 {
     this.actionResultRegistry = actionResultRegistry;
     this.objectFactory = objectFactory;
 }
 public void SetActionResultRegistry(IActionResultRegistry registry)
 {
     actionResultResolver.SetActionResultRegistry(registry);
 }
 public FluentMvcResolver(IActionResultRegistry actionResultRegistry, IFluentMvcObjectFactory objectFactory, IActionFilterResolver filterResolver)
 {
     this.objectFactory = objectFactory;
     actionFilterResolver = filterResolver;
     actionResultResolver = new ActionResultResolver(actionResultRegistry, objectFactory);
 }
Exemple #6
0
 public void Init(IActionResultRegistry registry)
 {
     inner = registry;
 }
 public static FluentMvcConfiguration Create(IFluentMvcResolver fluentMvcResolver, IActionFilterRegistry actionFilterRegistry, IActionResultRegistry actionResultRegistry, IFilterConventionCollection filterConventionCollection)
 {
     return(new FluentMvcConfiguration(fluentMvcResolver, actionFilterRegistry, actionResultRegistry, filterConventionCollection));
 }
Exemple #8
0
 public override void ForEach()
 {
     actionFilterRegistry = CreateStub <IActionFilterRegistry>();
     actionResultRegistry = CreateStub <IActionResultRegistry>();
 }
 public ActionResultResolver(IActionResultRegistry actionResultRegistry, IFluentMvcObjectFactory objectFactory)
 {
     this.actionResultRegistry = actionResultRegistry;
     this.objectFactory        = objectFactory;
 }
 public void SetActionResultRegistry(IActionResultRegistry registry)
 {
     actionResultRegistry = registry;
 }
 public void SetActionResultRegistry(IActionResultRegistry registry)
 {
     throw new System.NotImplementedException();
 }
Exemple #12
0
 public void SetActionResultRegistry(IActionResultRegistry registry)
 {
     actionResultResolver.SetActionResultRegistry(registry);
 }
Exemple #13
0
 public FluentMvcResolver(IActionResultRegistry actionResultRegistry, IFluentMvcObjectFactory objectFactory, IActionFilterResolver filterResolver)
 {
     this.objectFactory   = objectFactory;
     actionFilterResolver = filterResolver;
     actionResultResolver = new ActionResultResolver(actionResultRegistry, objectFactory);
 }
        public override void Given()
        {
            fluentMvcResolver = CreateStub<IFluentMvcResolver>();
            actionFilterRegistry = CreateStub<IActionFilterRegistry>();
            actionResultRegistry = CreateStub<IActionResultRegistry>();
            filterConventionCollection = CreateStub<IFilterConventionCollection>();

            Configuration = FluentMvcConfiguration
                .Create(fluentMvcResolver, actionFilterRegistry, actionResultRegistry, filterConventionCollection);
        }
Exemple #15
0
 public override void Given()
 {
     actionResultRegistry = new ActionResultRegistry();
     Configuration        = FluentMvcConfiguration.Create(CreateStub <IFluentMvcResolver>(), CreateStub <IActionFilterRegistry>(), actionResultRegistry, CreateStub <IFilterConventionCollection>())
                            .WithResultFactory <JsonResultFactory>(Apply.When <TrueReturningConstraint>());
 }
 public override void Given()
 {
     actionResultRegistry = new ActionResultRegistry();
     Configuration = FluentMvcConfiguration.Create(CreateStub<IFluentMvcResolver>(), CreateStub<IActionFilterRegistry>(), actionResultRegistry, CreateStub<IFilterConventionCollection>())
         .WithResultFactory<JsonResultFactory>(Apply.When<TrueReturningConstraint>());
 }
 public void SetActionResultRegistry(IActionResultRegistry registry)
 {
     throw new System.NotImplementedException();
 }
 public override void ForEach()
 {
     actionFilterRegistry = CreateStub<IActionFilterRegistry>();
     actionResultRegistry = CreateStub<IActionResultRegistry>();
 }
 private FluentMvcConfiguration(IFluentMvcResolver fluentMvcResolver, IActionFilterRegistry actionFilterRegistry, IActionResultRegistry actionResultRegistry, IFilterConventionCollection filterConventionCollection)
     : this()
 {
     this.fluentMvcResolver    = fluentMvcResolver;
     this.actionResultRegistry = actionResultRegistry;
     this.actionFilterRegistry = actionFilterRegistry;
     FilterConventions         = filterConventionCollection;
 }