Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = new Mock<IConfiguration>();
- var configSection = new Mock<IConfigurationSection>();
- configSection.Setup(a => a.Value).Returns("Server =.; Database = 00000000; Trusted_Connection = True; ");
- config.Setup(a => a.GetSection("ConnectionStrings")).Returns(configSection.Object);
- var mb = config.Object.GetSection("ConnectionStrings");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement