Last active
May 11, 2019 18:19
-
-
Save seangwright/b9e3d3bf1ef601931aeb4a9f59007d32 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
| [Test, AutoDomainData] | |
| public void GetString_Will_Return_Site_Setting_Value( | |
| SettingInfoProviderFixture fixture, | |
| ISiteContext siteContext, | |
| string keyName, | |
| string keyValue, | |
| string siteName, | |
| int siteId) | |
| { | |
| fixture.FakeSiteInfo(siteId, siteName); | |
| fixture.FakeSettingsInfo(keyName, keyValue, siteId); | |
| siteContext.SiteName.Returns(siteName); | |
| var sut = new KenticoSettingConfigProvider(siteContext); | |
| string setting = sut.GetString(keyName); | |
| setting.Should().Be(keyValue); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment