private void SetStyleSheets(StyleSheetType styleSheetType, List <XmlStyleSheet> styleSheets = null) { var setup = styleSheetType == StyleSheetType.Sitemap ? sitemapIndexConfiguration.Setup(configuration => configuration.SitemapStyleSheets) : sitemapIndexConfiguration.Setup(configuration => configuration.SitemapIndexStyleSheets); setup.Returns(styleSheets); }
private void SetStyleSheets(StyleSheetType styleSheetType, List<XmlStyleSheet> styleSheets = null) { var setup = styleSheetType == StyleSheetType.Sitemap ? sitemapIndexConfiguration.Setup(configuration => configuration.SitemapStyleSheets) : sitemapIndexConfiguration.Setup(configuration => configuration.SitemapIndexStyleSheets); setup.Returns(styleSheets); }