Example #1
0
 internal async Task <MongoDBDatabase> CreateMongoDBDatabase(AutoscaleSettings autoscale)
 {
     _databaseName = Recording.GenerateAssetName("mongodb-");
     return(await CreateMongoDBDatabase(_databaseName, autoscale, _databaseAccount.GetMongoDBDatabases()));
 }
Example #2
0
        public async Task GlobalSetup()
        {
            _resourceGroup = await GlobalClient.GetResourceGroup(_resourceGroupIdentifier).GetAsync();

            _databaseAccount = await CreateDatabaseAccount(SessionRecording.GenerateAssetName("dbaccount-"), DatabaseAccountKind.MongoDB);

            _mongoDBDatabaseId = (await MongoDBDatabaseTests.CreateMongoDBDatabase(SessionRecording.GenerateAssetName("mongodb-"), null, _databaseAccount.GetMongoDBDatabases())).Id;

            await StopSessionRecordingAsync();
        }