C# Class VibrantUtils.ActionAssert

Show file Open project: anurse/ReviewR

Public Methods

Method Description
IsHttpStatusResult ( System.Web.Mvc.ActionResult result, HttpStatusCode code ) : void
IsJsonResult ( System.Web.Mvc.ActionResult result, object data ) : void
IsPartialViewResult ( System.Web.Mvc.ActionResult result ) : void
IsPartialViewResult ( System.Web.Mvc.ActionResult result, object model ) : void
IsRedirectResult ( System.Web.Mvc.ActionResult result, object routeValues ) : void
IsRedirectResult ( System.Web.Mvc.ActionResult result, string url, bool permanent = false ) : void
IsViewResult ( System.Web.Mvc.ActionResult result ) : void
IsViewResult ( System.Web.Mvc.ActionResult result, object model ) : void

Private Methods

Method Description
VerifyViewResult ( System.Web.Mvc.ViewResultBase viewResultBase, string viewName, object model ) : void

Method Details

IsHttpStatusResult() public static method

public static IsHttpStatusResult ( System.Web.Mvc.ActionResult result, HttpStatusCode code ) : void
result System.Web.Mvc.ActionResult
code HttpStatusCode
return void

IsJsonResult() public static method

public static IsJsonResult ( System.Web.Mvc.ActionResult result, object data ) : void
result System.Web.Mvc.ActionResult
data object
return void

IsPartialViewResult() public static method

public static IsPartialViewResult ( System.Web.Mvc.ActionResult result ) : void
result System.Web.Mvc.ActionResult
return void

IsPartialViewResult() public static method

public static IsPartialViewResult ( System.Web.Mvc.ActionResult result, object model ) : void
result System.Web.Mvc.ActionResult
model object
return void

IsRedirectResult() public static method

public static IsRedirectResult ( System.Web.Mvc.ActionResult result, object routeValues ) : void
result System.Web.Mvc.ActionResult
routeValues object
return void

IsRedirectResult() public static method

public static IsRedirectResult ( System.Web.Mvc.ActionResult result, string url, bool permanent = false ) : void
result System.Web.Mvc.ActionResult
url string
permanent bool
return void

IsViewResult() public static method

public static IsViewResult ( System.Web.Mvc.ActionResult result ) : void
result System.Web.Mvc.ActionResult
return void

IsViewResult() public static method

public static IsViewResult ( System.Web.Mvc.ActionResult result, object model ) : void
result System.Web.Mvc.ActionResult
model object
return void