sdk/dotnet/test/Datasync.Common.Test/AssertEx.cs
/// <summary>
/// Ensures that the response has the required headers for conditional HTTP usage.
/// </summary>
/// <param name="expected">The <see cref="ITableData"/> representing the entity returned.</param>
/// <param name="response">The response to check.</param>
Ensures that the response has the required headers for conditional HTTP usage.
Ensures that the response has the required headers for conditional HTTP usage .
public static void ResponseHasConditionalHeaders(ITableData expected, HttpResponseMessage response)
        {
            var lastModified = expected.UpdatedAt.ToString(DateTimeFormatInfo.InvariantInfo.RFC1123Pattern);
            HasHeader(response, HeaderNames.ETag, expected.GetETag());
            HasHeader(response, HeaderNames.LastModified, lastModified);
        }
public static void ResponseHasConditionalHeaders ( ITableData expected , HttpResponseMessage response ) { var lastModified = expected . UpdatedAt . ToString ( DateTimeFormatInfo . InvariantInfo . RFC1123Pattern ) ; HasHeader ( response , HeaderNames . ETag , expected . GetETag ( ) ) ; HasHeader ( response , HeaderNames . LastModified , lastModified ) ; }
Ensures that the response has the required headers for conditional HTTP usage.
Ensures that the response has the required headers for conditional HTTP usage .
expected
ITableData
The  representing the entity returned.
The representing the entity returned .
response
HttpResponseMessage
The response to check.
The response to check .