|
Joutsen
v0.4.1
|
A factory class for various faked ASP.NET Mvc controller related objects which can be used to ease unit testing. More...
Public Member Functions | |
| ControllerContext | CreateContext (Controller controller, String httpMethod=null) |
| Creates a fake System.Web.Mvc.ControllerContext. More... | |
| HtmlHelper< TModel > | HtmlHelper< TModel > (ViewDataDictionary viewData, ViewContext viewContext) |
| Creates a fake System.Web.Mvc.HtmlHelper. More... | |
| HtmlHelper< TModel > | HtmlHelper< TModel > (ViewDataDictionary viewData, HttpContextBase httpContext) |
| Creates a fake System.Web.Mvc.HtmlHelper. More... | |
| HtmlHelper< TModel > | HtmlHelper< TModel > (ViewDataDictionary viewData) |
| Creates a fake System.Web.Mvc.HtmlHelper. More... | |
| HtmlHelper< TModel > | HtmlHelper< TModel > (TModel model) |
| Creates a fake System.Web.Mvc.HtmlHelper. More... | |
| HttpRequestBase | Request (String httpMethod) |
| Creates a fake System.Web.HttpRequestBase for a HTTP method. More... | |
| HttpResponseBase | Response () |
| Creates a fake System.Web.HttpResponseBase. More... | |
| HttpContextBase | HttpContext (String httpMethod=null) |
| Creates a fake System.Web.HttpContextBase. More... | |
| HttpServerUtilityBase | ServerUtility () |
| Creates a fake System.Web.HttpServerUtilityBase. More... | |
| ModelBindingContext | ModelBindingContext (string modelName, Type modelType, Dictionary< string, object > values) |
| Creates a System.Web.Mvc.ModelBindingContext that contains a System.Web.Mvc.IValueProvider which retrieves its values from a dictionary. More... | |
| IValueProvider | ValueProvider (Dictionary< string, object > values) |
| Creates a System.Web.Mvc.IValueProvider which will map requested value names to keys of a dictionary and return the respective value. More... | |
| UrlHelper | UrlHelper (HttpContextBase httpContext) |
| Creates a fake System.Web.Mvc.UrlHelper. More... | |
A factory class for various faked ASP.NET Mvc controller related objects which can be used to ease unit testing.
A factory class for various faked ASP.NET Mvc objects related to System.Web.Mvc.UrlHelper which can be used to ease unit testing.
A factory class for various faked ASP.NET Mvc model binding objects which can be used to ease unit testing.
A factory class for various faked ASP.NET Mvc objects which can be used to ease unit testing.
A factory class for various faked ASP.NET Mvc objects related to System.Web.Mvc.HtmlHelper which can be used to ease unit testing.
| ControllerContext Joutsen.Fakes.MvcFakesFactory.CreateContext | ( | Controller | controller, |
| String | httpMethod = null |
||
| ) |
Creates a fake System.Web.Mvc.ControllerContext.
| controller | the controller for which the context is created |
| httpMethod | the HTTP method of the request, if the request is to be faked as well. See Framework.UnitTest.Mvc.Http.CreateRequest(String). |
| HtmlHelper<TModel> Joutsen.Fakes.MvcFakesFactory.HtmlHelper< TModel > | ( | ViewDataDictionary | viewData, |
| ViewContext | viewContext | ||
| ) |
Creates a fake System.Web.Mvc.HtmlHelper.
| TModel | the type of the model of the helper |
| viewData | the view related data of the helper |
| viewContext | the viewContext for the new helper |
| HtmlHelper<TModel> Joutsen.Fakes.MvcFakesFactory.HtmlHelper< TModel > | ( | ViewDataDictionary | viewData, |
| HttpContextBase | httpContext | ||
| ) |
Creates a fake System.Web.Mvc.HtmlHelper.
| TModel | the type of the model of the helper |
| viewData | the view related data of the helper |
| httpContext | the httpcontext for the new helper |
| HtmlHelper<TModel> Joutsen.Fakes.MvcFakesFactory.HtmlHelper< TModel > | ( | ViewDataDictionary | viewData | ) |
Creates a fake System.Web.Mvc.HtmlHelper.
| TModel | the type of the model of the helper |
| viewData | the view related data of the helper |
| HtmlHelper<TModel> Joutsen.Fakes.MvcFakesFactory.HtmlHelper< TModel > | ( | TModel | model | ) |
Creates a fake System.Web.Mvc.HtmlHelper.
| TModel | the type of the model of the helper |
| model | The model of the helper |
| HttpContextBase Joutsen.Fakes.MvcFakesFactory.HttpContext | ( | String | httpMethod = null | ) |
Creates a fake System.Web.HttpContextBase.
| httpMethod | the HTTP method of the request, if the request is to be faked as well |
| ModelBindingContext Joutsen.Fakes.MvcFakesFactory.ModelBindingContext | ( | string | modelName, |
| Type | modelType, | ||
| Dictionary< string, object > | values | ||
| ) |
Creates a System.Web.Mvc.ModelBindingContext that contains a System.Web.Mvc.IValueProvider which retrieves its values from a dictionary.
| modelName | the name of the model the context shall provide data for |
| modelType | the type of the model the context shall provide data for |
| values | the data values as a mapping of property name to value which are used by the System.Web.Mvc.IValueProvider. |
| HttpRequestBase Joutsen.Fakes.MvcFakesFactory.Request | ( | String | httpMethod | ) |
Creates a fake System.Web.HttpRequestBase for a HTTP method.
| httpMethod | the HTTP method of the request: GET, POST, HEAD, PUT, etc |
| HttpResponseBase Joutsen.Fakes.MvcFakesFactory.Response | ( | ) |
Creates a fake System.Web.HttpResponseBase.
| HttpServerUtilityBase Joutsen.Fakes.MvcFakesFactory.ServerUtility | ( | ) |
Creates a fake System.Web.HttpServerUtilityBase.
| UrlHelper Joutsen.Fakes.MvcFakesFactory.UrlHelper | ( | HttpContextBase | httpContext | ) |
Creates a fake System.Web.Mvc.UrlHelper.
| httpContext | the httpcontext for the new helper |
| IValueProvider Joutsen.Fakes.MvcFakesFactory.ValueProvider | ( | Dictionary< string, object > | values | ) |
Creates a System.Web.Mvc.IValueProvider which will map requested value names to keys of a dictionary and return the respective value.
| values | the dictionary providing the name value mapping |
1.8.13