public IHttpActionResult OkResultWithContentNegotiatorAction() { return(new OkNegotiatedContentResult <int>( 5, TestObjectFactory.GetCustomContentNegotiator(), TestObjectFactory.GetCustomHttpRequestMessage(), TestObjectFactory.GetFormatters())); }
public IHttpActionResult CreatedActionWithCustomContentNegotiator() { return(new CreatedNegotiatedContentResult <ICollection <ResponseModel> >( TestObjectFactory.GetUri(), this.responseModel, TestObjectFactory.GetCustomContentNegotiator(), TestObjectFactory.GetCustomHttpRequestMessage(), TestObjectFactory.GetFormatters())); }
public IHttpActionResult ContentActionWithCustomFormatters() { return(new NegotiatedContentResult <int>( HttpStatusCode.OK, 5, TestObjectFactory.GetCustomContentNegotiator(), TestObjectFactory.GetCustomHttpRequestMessage(), TestObjectFactory.GetFormatters())); }