public void OneTimeSetUp() { DatabaseName = "Test_" + DateTime.UtcNow.Ticks.ToString(CultureInfo.InvariantCulture); var subscriptionCollection = ClientProvider.Client.GetDatabase(DatabaseName, MongoPersistence.DefaultDatabaseSettings).GetCollection <EventSubscription>("eventsubscriptions"); var subscriptionPersister = new SubscriptionPersister(subscriptionCollection); subscriptionPersister.CreateIndexes(); storage = subscriptionPersister; }