private TModel GetModel() { var model = this.TestContext.ModelAs <TModel>(); CommonValidator.CheckForEqualityWithDefaultValue(model, "AndProvideTheModel can be used when there is response model from the action."); return(model); }
/// <summary> /// Gets the model returned from an action result. /// </summary> /// <returns>Model returned from action result.</returns> public TModel AndProvideTheModel() { CommonValidator.CheckForEqualityWithDefaultValue(this.Model, "AndProvideTheModel can be used when there is response model from the action."); return(this.Model); }