Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ public async Task ReadDocumentHeaderAsync_ShouldReturnNotModified_WhenIfNoneMatc
{
Dictionary<string, object> document = new Dictionary<string, object> { ["key"] = "value" };
var docResponse = await _docClient.PostDocumentAsync(_testCollection, document);
var response = await _docClient.HeadDocumentAsync(_testCollection, docResponse._key, new HeadDocumentHeader
var response = await _docClient.HeadDocumentAsync(_testCollection, docResponse._key, new DocumentHeaderProperties
{
IfNoneMatch = docResponse._rev
});
Expand All @@ -1078,7 +1078,7 @@ public async Task ReadDocumentHeaderAsync_ShouldReturnPreconditionFailed_WhenIfM
["key"] = "newValue"
});
// check if revision has changed
var response = await _docClient.HeadDocumentAsync(_testCollection, docResponse._key, new HeadDocumentHeader
var response = await _docClient.HeadDocumentAsync(_testCollection, docResponse._key, new DocumentHeaderProperties
{
IfMatch = docResponse._rev
});
Expand Down Expand Up @@ -1109,7 +1109,7 @@ public async Task ReadDocumentHeaderAsync_ShouldReturnOk_WhenTransactionIdIsGive
var response = await _docClient.HeadDocumentAsync(
_testCollection,
docResponse._key,
new HeadDocumentHeader { TransactionId = beginTransaction.Result.Id });
new DocumentHeaderProperties { TransactionId = beginTransaction.Result.Id });

// Check for the expected status.
Assert.Equal(HttpStatusCode.OK, response.Code);
Expand All @@ -1132,7 +1132,7 @@ public async Task ReadDocumentHeaderAsync_ShouldReturnNotFound_WhenTransctionIdI
var response = await _docClient.HeadDocumentAsync(
_testCollection,
docResponse._key,
new HeadDocumentHeader { TransactionId = dummyTransactionId });
new DocumentHeaderProperties { TransactionId = dummyTransactionId });

// Check for the expected status.
Assert.Equal(HttpStatusCode.BadRequest, response.Code);
Expand Down
Loading