Пример #1
0
 public static void AssertSchema(this IMeasuredResponse response, Uri schemaUri)
 {
     AssertSchemaEvent?.Invoke(response, new ApiAssertEventArgs(response, string.Empty));
     if (response.Request.RequestFormat == DataFormat.Json)
     {
         AssertJsonSchema(response, schemaUri);
     }
     else
     {
         AssertXmlSchema(response, schemaUri);
     }
 }
Пример #2
0
        public static void AssertSchema(this IMeasuredResponse response, Uri schemaUri)
        {
            AssertSchemaEvent?.Invoke(response, new ApiAssertEventArgs(response, string.Empty));
#pragma warning disable CS0618 // Type or member is obsolete
            if (response.Request.RequestFormat == DataFormat.Json)
#pragma warning restore CS0618 // Type or member is obsolete
            {
                AssertJsonSchema(response, schemaUri);
            }
            else
            {
                AssertXmlSchema(response, schemaUri);
            }
        }