public async Task MongoDBDatabaseMigrateToAutoscale() { var database = await CreateMongoDBDatabase(null); DatabaseAccountMongodbDatabaseThroughputSetting throughput = await database.GetDatabaseAccountMongodbDatabaseThroughputSetting().GetAsync(); AssertManualThroughput(throughput.Data); ThroughputSettingsData throughputData = (await throughput.MigrateMongoDBDatabaseToAutoscaleAsync(WaitUntil.Completed)).Value.Data; AssertAutoscale(throughputData); }
public async Task MongoDBDatabaseThroughput() { var database = await CreateMongoDBDatabase(null); DatabaseAccountMongodbDatabaseThroughputSetting throughput = await database.GetDatabaseAccountMongodbDatabaseThroughputSetting().GetAsync(); Assert.AreEqual(TestThroughput1, throughput.Data.Resource.Throughput); DatabaseAccountMongodbDatabaseThroughputSetting throughput2 = (await throughput.CreateOrUpdateAsync(WaitUntil.Completed, new ThroughputSettingsUpdateData(AzureLocation.WestUS, new ThroughputSettingsResource(TestThroughput2, null, null, null)))).Value; Assert.AreEqual(TestThroughput2, throughput2.Data.Resource.Throughput); }