Skip to content

Instantly share code, notes, and snippets.

@plioi
Created June 26, 2013 01:32
Show Gist options
  • Save plioi/5864039 to your computer and use it in GitHub Desktop.
Save plioi/5864039 to your computer and use it in GitHub Desktop.
public class IntegrationTestConvention : Convention
{
public IntegrationTestConvention()
{
Fixtures
.NameEndsWith("Tests");
Cases
.Where(method => method.Void())
.ZeroParameters();
InstanceExecution
.Wrap((fixture, innerBehavior) =>
{
using (new TransactionScope())
innerBehavior.Execute(fixture);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment