Beispiel #1
0
        private void VerifyResponse <T>(
            Response <T> response,
            T expectedValue,
            QueryRequestOptions queryRequestOptions)
        {
            Assert.AreEqual <T>(expectedValue, response.Resource);
            Assert.IsTrue(response.RequestCharge > 0);

            bool disableDiagnostics = queryRequestOptions.DiagnosticContextFactory != null;

            CosmosDiagnosticsTests.VerifyQueryDiagnostics(
                diagnostics: response.Diagnostics,
                isFirstPage: false,
                disableDiagnostics: disableDiagnostics);
        }
 private void VerifyResponse <T>(Response <T> response, T expectedValue)
 {
     Assert.AreEqual <T>(expectedValue, response.Resource);
     Assert.IsTrue(response.RequestCharge > 0);
     CosmosDiagnosticsTests.VerifyQueryDiagnostics(response.Diagnostics);
 }