public void collection_throughput_cannot_be_greater_than_database_throughput() { var builder = new AzureDocumentDbStorageEngineBuilder(CreateClient(), "Test") .UseSharedThroughput(o => { o.DatabaseRequestUnits = 400; }) .UseCollection(o => o.CollectionRequestUnits = 500); Assert.Throws <ArgumentException>(() => builder.Build()); }
public void throughput_must_be_set_in_one_location() { var builder = new AzureDocumentDbStorageEngineBuilder(CreateClient(), "Test") .UseSharedThroughput(o => { o.DatabaseRequestUnits = null; }) .UseCollection(o => o.CollectionRequestUnits = null); Assert.Throws <ArgumentException>(() => builder.Build()); }