Created
July 21, 2019 17:08
-
-
Save obegendi/5fa3711de8b7f87c7bfbcc885f986f80 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[Fact] | |
public void MoqFactory() | |
{ | |
MockFactory mockFactory = new MockFactory(MockBehavior.Default); | |
// Setup parameters for mocking | |
mockFactory.CallBase = true; | |
mockFactory.DefaultValue = DefaultValue.Mock; | |
Mock<IValidator> validator = mockFactory.Create<IValidator>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment