Skip to content

Instantly share code, notes, and snippets.

@stefansedich
Created May 22, 2011 00:56
Show Gist options
  • Save stefansedich/985043 to your computer and use it in GitHub Desktop.
Save stefansedich/985043 to your computer and use it in GitHub Desktop.
[TearDown]
public void TearDown()
{
using(var session = CreateSession())
{
using(var tx = session.BeginTransaction())
{
foreach (var entity in _cleanupListener.InsertedEntities)
{
session.Delete(entity);
}
tx.Commit();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment