示例#1
0
        /// <summary>
        /// Creates a new the reader for the given response message and settings.
        /// </summary>
        /// <param name="responseMessage">The response message.</param>
        /// <param name="settings">The settings.</param>
        /// <returns>Newly created message reader.</returns>
        internal ODataMessageReader CreateReader(IODataResponseMessage responseMessage, ODataMessageReaderSettings settings)
        {
            Debug.Assert(responseMessage != null, "responseMessage != null");
            Debug.Assert(settings != null, "settings != null");

            DataServiceClientFormat.ValidateCanReadResponseFormat(responseMessage);
            return(new ODataMessageReader(responseMessage, settings, this.responseInfo.TypeResolver.ReaderModel));
        }
 public void ValidateCanReadResponseMessageShouldNotThrowForV3AndJsonLightWithModel()
 {
     this.v3TestSubject.UseJson(this.serviceModel);
     DataServiceClientFormat.ValidateCanReadResponseFormat(ResponseWithApplicationJson);
 }