public async Task Delete_EndToEnd() { var schemaName = GetRandomName; await SchemaClient.AssertNoSchemasExist("aut", delay : TimeSpan.FromSeconds(0.5)); var createschema = await SchemaClient.CreateSchema("aut", AssetLoader.Schema1(schemaName)); var publishedschema = await SchemaClient.PublishSchema("aut", schemaName); dynamic create1response = await ContentClient.CreateContent("aut", schemaName, AssetLoader.AsDynamic(AssetLoader.Schema1Data1PostName)); dynamic create2response = await ContentClient.CreateContent("aut", schemaName, AssetLoader.AsDynamic(AssetLoader.Schema1Data2PostName)); string create1id = Convert.ToString(create1response.id); string create2id = Convert.ToString(create2response.id); await ContentClient.PublishContent("aut", schemaName, create1id); await ContentClient.PublishContent("aut", schemaName, create2id); // act await ContentClient.DeleteContent("aut", schemaName, create1id); await ContentClient.DeleteContent("aut", schemaName, create2id); // note : eventual consistency and all that sometimes we don't get away with validating right away. await Task.Delay(TimeSpan.FromSeconds(1)); await ContentClient.AssertContentMustNotExists("aut", schemaName, create1id, delay : TimeSpan.FromSeconds(0.5)); await ContentClient.AssertContentMustNotExists("aut", schemaName, create2id, delay : TimeSpan.FromSeconds(0.5)); // todo : verify export content await SchemaClient.DeleteSchema("aut", schemaName); }