Skip to content

Instantly share code, notes, and snippets.

@chester89
Created May 11, 2012 07:10
Show Gist options
  • Save chester89/2658076 to your computer and use it in GitHub Desktop.
Save chester89/2658076 to your computer and use it in GitHub Desktop.
[Test]
public void should_register_type_as_single_implementation()
{
Scan(ac =>
{
ac.AssemblyContainingType<ISingleInterface>();
ac.SingleImplementationsOfInterface();
});
shouldHaveFamily<ISingleInterface>();
}
public interface ISingleInterface
{
}
public class SingleInterface: ISingleInterface
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment