Exemple #1
0
        /// <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> WithResponsemodelDeserialize <TResponseModel>()
        {
            var actualModel = HttpResponseMessageValidator.DeserializeactualContentModel <TResponseModel>(
                this.httpResponseMessage.Content,
                this.ThrowNewResponseModelAssertionException);

            return(new HttpHandlerModelDetailsTestBuilder <TResponseModel>(
                       this,
                       actualModel));
        }