Beispiel #1
0
 public static Task CleanAll(RunningRuntime runtime)
 => Task.WhenAll(runtime.Host.StopAsync(), DropAllDatabases(runtime));
Beispiel #2
0
 public static Task DropAllDatabases(RunningRuntime runtime)
 => Task.WhenAll(runtime.Databases.Select(database => runtime.MongoClient.DropDatabaseAsync(database, CancellationToken.None)));
Beispiel #3
0
 public void GlobalSetup()
 {
     _runtime = Runtime.CreateAndStart(NumTenants);
     Setup(_runtime.Host.Services);
 }