- Download and install Azure Cosmos DB Emulator. Clone the code from this repository
- Create databases called
CosmosTestand a container calledLeads. Set storage capacity to unlimited and the partition key to/market - Update the
appsetting.jsonor user secrets in VisualStudio with corresponding endpoint and primary key - Run the solution
- Set breakpoint at
GetLeadsAsyncmethod inCosmosDbClient - Navigate to https://localhost:44316/leads?countryCode=GB and validate that you get a
NullReferenceExceptionatvar count = await cosmosQuery.CountAsync();inCosmosDbClient - Navigate to https://localhost:44316/leads?countryCode=GB&marketCode=GB and verify that you do not get an exception
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|