Created
May 22, 2011 00:18
-
-
Save stefansedich/985021 to your computer and use it in GitHub Desktop.
CleanupTestDataEventListener
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
public class CleanupTestDataEventListener : IPostInsertEventListener | |
{ | |
private readonly HashSet<object> _insertedEntities = new HashSet<object>(); | |
public IEnumerable<object> InsertedEntities | |
{ | |
get { return _insertedEntities.Reverse(); } | |
} | |
public void OnPostInsert(PostInsertEvent @event) | |
{ | |
_insertedEntities.Add(@event.Entity); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment