public async Task CreateContainerIfNotExistTest() { string dbName = nameof(CreateContainerIfNotExistTest) + Guid.NewGuid(); DatabaseCore database = (DatabaseInlineCore)await this.cosmosClient.CreateDatabaseAsync(dbName); ContainerProperties containerProperties = new ContainerProperties("Test", "/id"); ContainerResponse containerResponse = await database.CreateContainerIfNotExistsAsync( containerProperties, ThroughputProperties.CreateAutoscaleThroughput(5000)); Assert.AreEqual(HttpStatusCode.Created, containerResponse.StatusCode); ThroughputResponse autoscale = await containerResponse.Container.ReadThroughputAsync(requestOptions : null); Assert.IsNotNull(autoscale); Assert.IsNotNull(autoscale.Resource.Throughput); Assert.AreEqual(5000, autoscale.Resource.AutoscaleMaxThroughput); containerResponse = await database.CreateContainerIfNotExistsAsync( containerProperties, ThroughputProperties.CreateAutoscaleThroughput(5000)); Assert.AreEqual(HttpStatusCode.OK, containerResponse.StatusCode); }