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); } }
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); } }