/// <summary> /// Testuje, či sa určitý typ modelu odpovede vráti z obsahu správy odpovedí HTTP. /// </summary> /// <typeparam name="TResponseModel">Type of the response model.</typeparam> /// <returns>Builder for testing the response model errors.</returns> public IHttpHandlerModelDetailsTestBuilder <TResponseModel> WithResponseModelOfType <TResponseModel>() { var actualModel = HttpResponseMessageValidator.GetActualContentModel <TResponseModel>( this.httpResponseMessage.Content, this.ThrowNewResponseModelAssertionException); return(new HttpHandlerModelDetailsTestBuilder <TResponseModel>( this, actualModel)); }
/// <summary> /// Testuje, či sa určitý typ modelu odpovede vráti z obsahu objektu HTTP odpoveď. /// </summary> /// <typeparam name="TResponseModel">Type of the response model.</typeparam> /// <returns>Builder for testing the response model errors.</returns> public IModelDetailsTestBuilder <TResponseModel> ValidWithResponseModelOfType <TResponseModel>() { var actualModel = HttpResponseMessageValidator.GetActualContentModel <TResponseModel>( this.ActionResult.Content, this.ThrowNewResponseModelAssertionException); return(new ModelDetailsTestBuilder <TResponseModel>( this.Controller, this.ActionName, this.CaughtException, actualModel)); }