sdk/dotnet/test/Microsoft.Datasync.Client.Test/Table/Operations.RemoteTableOfT/BaseOperationTest.cs
/// <summary>
/// Checks that the specified request is the right method and path
/// </summary>
/// <param name="request"></param>
/// <param name="method"></param>
/// <param name="endpoint"></param>
/// <returns></returns>
Checks that the specified request is the right method and path
Checks that the specified request is the right method and path
protected static HttpRequestMessage AssertRequest(HttpRequestMessage request, HttpMethod method, string endpoint)
        {
            Assert.Equal(method, request.Method);
            Assert.Equal(endpoint, request.RequestUri.ToString());
            AssertEx.HasHeader(request.Headers, "ZUMO-API-VERSION", "3.0.0");
            return request;
        }
protected static HttpRequestMessage AssertRequest ( HttpRequestMessage request , HttpMethod method , string endpoint ) { Assert . Equal ( method , request . Method ) ; Assert . Equal ( endpoint , request . RequestUri . ToString ( ) ) ; AssertEx . HasHeader ( request . Headers , " " , " " ) ; return request ; }
Checks that the specified request is the right method and path
Checks that the specified request is the right method and path
None
request
HttpRequestMessage
None
method
HttpMethod
None
endpoint
string
None