Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save seangwright/b9e3d3bf1ef601931aeb4a9f59007d32 to your computer and use it in GitHub Desktop.
Save seangwright/b9e3d3bf1ef601931aeb4a9f59007d32 to your computer and use it in GitHub Desktop.
[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