Customising Conventions

Removing Conventions

If you don't want any or all built-in conventions applied you can remove them.

// Remove all conventions with a matching name
Fabricator.RemoveConvention("FullName");

// Remove a specific typed conventions
Fabricator.RemoveConvention<string>("FullName");

// Remove all named conventions and fall back to default values for all properties where you have not set a custom rule
Fabricator.RemoveAllNamedConventions();


Notes
  • If the convention to remove doesn't exist the call will be ignored.
  • Conventions set up by you will also be removed.

Last edited Nov 13, 2010 at 8:17 AM by JRoughan, version 1

Comments

No comments yet.