Skip to content

Instantly share code, notes, and snippets.

@plioi
Last active January 26, 2016 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plioi/1e62c7be7a81af65ef64 to your computer and use it in GitHub Desktop.
Save plioi/1e62c7be7a81af65ef64 to your computer and use it in GitHub Desktop.
public class TestingConvention : Convention
{
public TestingConvention()
{
Classes
.NameEndsWith("Tests");
Methods
.Where(method => method.IsVoid() || method.IsAsync());
ClassExecution
.Wrap<InitializeAutoMapper>();
CaseExecution
.Wrap<ResetDatabase>()
.Wrap<NestedContainerPerCase>();
Parameters
.Add<AutoFixtureParameterSource>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment