public void CanSelectASettingsTheme() { var settings = MockAppFactory.GetMockSettings(); var mapper = new MockPathMapper(); var themeElement = new ThemeElement(); var selectedTheme = themeElement.FindTheme(settings, mapper); Assert.AreEqual("PerfectBlemish", selectedTheme); }
public void ReturnsNullIfNeitherExists() { var settings = MockAppFactory.GetMockSettings(); settings.BlogTheme = ""; var mapper = new MockPathMapper(); var themeElement = new ThemeElement(); var selectedTheme = themeElement.FindTheme(settings, mapper); Assert.IsNull(selectedTheme); }
public void CanSelectAWebConfigTheme() { var settings = MockAppFactory.GetMockSettings(); var mapper = new MockPathMapper(); var themeElement = new ThemeElement { SelectedTheme = "PrePaid" }; var selectedTheme = themeElement.FindTheme(settings, mapper); Assert.AreEqual("PrePaid", selectedTheme); }
public static ISettings CreateSettingsRepository(int loadType = 1) { return(MockAppFactory.GetMockSettings(loadType)); }