public void AsyncSequentialGeneration_NoClashesOrGaps()
{
using (GetNewServer())
using (var store = new DocumentStore
{
Url = "http://localhost:8079"
}.Initialize())
{
var gen = new AsyncHiLoKeyGenerator(store.AsyncDatabaseCommands, "When_async_generating_lots_of_keys_concurrently_there_are_no_clashes", 2);
Test(() => gen.NextIdAsync().Result, 1, GeneratedIdCount);
}
}