Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (19 sloc) 0.494 kb
using System;
using System.Linq;
namespace FluentCassandra
{
public class CassandraDatabaseSetupFixture
{
private static bool DatabaseHasBeenCleaned = false;
public CassandraDatabaseSetup DatabaseSetup(bool? reset = null)
{
if (reset == null && !DatabaseHasBeenCleaned)
{
DatabaseHasBeenCleaned = true;
// refresh the entire database
return new CassandraDatabaseSetup(reset: true);
}
return new CassandraDatabaseSetup(reset: reset ?? false);
}
}
}
Jump to Line
Something went wrong with that request. Please try again.