Created
May 22, 2011 00:56
-
-
Save stefansedich/985043 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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