e5d36d7c43
Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 3.0.0-pre.24 to 3.0.0-pre.30. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/compare/3.0.0-pre.24...3.0.0-pre.30) --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.github | ||
src | ||
.gitignore | ||
license.txt | ||
readme.md |
readme.md
Verify.Cosmos
Adds Verify support to verify Azure CosmosDB.
See Milestones for release notes.
NuGet package
https://nuget.org/packages/Verify.Cosmos/
Usage
[ModuleInitializer]
public static void Init() =>
VerifyCosmos.Initialize();
ItemResponse
A ItemResponse
can be verified:
var response = await container.CreateItemAsync(
item,
new PartitionKey(item.LastName));
await Verify(response);
Resulting in:
{
RequestCharge: 7.4,
Headers: {},
StatusCode: Created,
Resource: {
Id: Guid_1,
LastName: Andersen,
Address: {
State: WA,
County: King,
City: Seattle
}
}
}
FeedResponse
A FeedResponse
can be verified:
using var iterator = container.GetItemLinqQueryable<Family>()
.Where(b => b.Id == item.Id)
.ToFeedIterator();
var feedResponse = await iterator.ReadNextAsync();
await Verify(feedResponse);
Resulting in:
{
RequestCharge: 2.8,
Count: 1,
Headers: {},
StatusCode: OK,
Resource: [
{
Id: Guid_1,
LastName: Andersen,
Address: {
State: WA,
County: King,
City: Seattle
}
}
]
}
Icon
Approval designed by Mike Zuidgeest from The Noun Project.