Skip to content

Commit

Permalink
Rename header class of document API for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
DiscoPYF committed Nov 11, 2021
1 parent 9d1ac5e commit 9827fef
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 87 deletions.
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

0 comments on commit 9827fef

Please sign in to comment.