-
-
Save tonidy/599d0b283c8b2bc1e5e4963d1fe2e371 to your computer and use it in GitHub Desktop.
Mock Configuration.GetSection
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
Mock<IConfiguration> configuration = new Mock<IConfiguration>(); | |
configuration.Setup(c => c.GetSection(It.IsAny<String>())).Returns(new Mock<IConfigurationSection>().Object); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment