Hi
Is there a way to setup a running instance of the EventStore for integration tests. I would like to call a function like this for a single stream:
public static void Reset() {
using (var connection = EventStoreConnection.Create(gesAddress)) {
connection.Connect();
var metadata = connection.GetStreamMetadata(“configuration”);
if (!metadata.IsStreamDeleted)
connection.DeleteStream(“configuration”, ExpectedVersion.Any);
}
}
However once I called this the stream “configuration” is deleted and when I try to append to the stream I get a StreamDeletedException. I read somewhere that you can scavenge the database to remove all deleted streams but I cannot find a way to do it via the ClientApi?
Is there a way to delete an entire database using the ClientApi?
Regards
Stefan Olofsson