public void can_clean_repeatedly_for_directory() { var options = new StoreOptions(); options.Connection(ConnectionSource.ConnectionString); options.Schema.For <User>(); options.Schema.For <Target>(); var input = new DumpInput { Store = new DocumentStore(options), FileName = Path.GetTempPath().AppendPath("dump1"), }; new DumpCommand().Execute(input); Thread.Sleep(100); // Let the file system calm down new DumpCommand().Execute(input); }
public void can_clean_repeatedly_for_directory() { var options = new StoreOptions(); options.Connection(ConnectionSource.ConnectionString); options.Schema.For <User>(); options.Schema.For <Target>(); var input = new DumpInput { HostBuilder = new HostBuilder().ConfigureServices(x => x.AddMarten(options)), FileName = Path.GetTempPath().AppendPath("dump1"), }; new DumpCommand().Execute(input); Thread.Sleep(100); // Let the file system calm down input.HostBuilder = new HostBuilder().ConfigureServices(x => x.AddMarten(options)); new DumpCommand().Execute(input); }