Beispiel #1
0
        private async Task InitDatabase(DocumentClient docClient)
        {
            await docClient.GetOrCreateDatabaseAsync(databaseId);

            await docClient.DeleteDocumentCollectionIfExistsAsync(databaseId, collectionId);

            await docClient.GetOrCreateCollectionAsync(databaseId, collectionId);

            await docClient.AddTestDocuments(databaseId, collectionId);
        }