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); }
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)); }
public override void ForEach() { actionFilterRegistry = CreateStub <IActionFilterRegistry>(); actionResultRegistry = CreateStub <IActionResultRegistry>(); }
public void SetActionResultRegistry(IActionResultRegistry registry) { throw new System.NotImplementedException(); }
public override void Given() { fluentMvcResolver = CreateStub<IFluentMvcResolver>(); actionFilterRegistry = CreateStub<IActionFilterRegistry>(); actionResultRegistry = CreateStub<IActionResultRegistry>(); filterConventionCollection = CreateStub<IFilterConventionCollection>(); Configuration = FluentMvcConfiguration .Create(fluentMvcResolver, actionFilterRegistry, actionResultRegistry, filterConventionCollection); }
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 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; }