#17816: Caching current theme name as a way to avoid up to 2 queries per request.

--HG--
branch : 1.x
This commit is contained in:
Andre Rodrigues
2011-05-24 12:34:27 -07:00
parent de6fc72d8e
commit 62c94648ec
3 changed files with 42 additions and 18 deletions

View File

@@ -128,8 +128,7 @@ Features:
Assert.Throws(typeof(InvalidOperationException), () => themeRecipeHandler.ExecuteRecipeStep(recipeContext));
}
internal class StubSiteThemeService : ISiteThemeService
{
internal class StubSiteThemeService : ISiteThemeService {
public ExtensionDescriptor GetSiteTheme() {
throw new NotImplementedException();
}
@@ -137,6 +136,10 @@ Features:
public void SetSiteTheme(string themeName) {
throw new NotImplementedException();
}
public string GetCurrentThemeName() {
throw new NotImplementedException();
}
}
}
}