public SiteMapHandlerTests() { _siteMaps = new SiteMapDictionary(); _compressor = new Mock<IHttpResponseCompressor>(); _cacher = new Mock<IHttpResponseCacher>(); _urlGenerator = new Mock<IUrlGenerator>(); _httpContext = TestHelper.CreateMockedHttpContext(); _handler = new SiteMapHandler(_siteMaps, _compressor.Object, _cacher.Object, _urlGenerator.Object); }
public SiteMapHandlerTests() { _siteMaps = new SiteMapDictionary(); _compressor = new Mock <IHttpResponseCompressor>(); _cacher = new Mock <IHttpResponseCacher>(); _urlGenerator = new Mock <IUrlGenerator>(); _httpContext = TestHelper.CreateMockedHttpContext(true); _handler = new SiteMapHandler(_siteMaps, _compressor.Object, _cacher.Object, _urlGenerator.Object); }
/// <summary> /// Initializes a new instance of the <see cref="SiteMapHandler"/> class. /// </summary> /// <param name="siteMaps">The site maps.</param> /// <param name="httpResponseCompressor">The HTTP response compressor.</param> /// <param name="httpResponseCacher">The HTTP response cacher.</param> /// <param name="urlGenerator">The URL generator.</param> public SiteMapHandler(SiteMapDictionary siteMaps, IHttpResponseCompressor httpResponseCompressor, IHttpResponseCacher httpResponseCacher, IUrlGenerator urlGenerator) { Guard.IsNotNull(siteMaps, "siteMaps"); Guard.IsNotNull(httpResponseCompressor, "httpResponseCompressor"); Guard.IsNotNull(httpResponseCacher, "httpResponseCacher"); Guard.IsNotNull(urlGenerator, "urlGenerator"); this.siteMaps = siteMaps; this.httpResponseCompressor = httpResponseCompressor; this.httpResponseCacher = httpResponseCacher; this.urlGenerator = urlGenerator; }
public PopulateSiteMapAttributeTests() { _siteMap = new Mock<SiteMapBase>(); SiteMapDictionary siteMaps = new SiteMapDictionary { { "mySiteMap", _siteMap.Object } }; _attribute = new PopulateSiteMapAttribute(siteMaps) { SiteMapName = "mySiteMap" }; }
public PopulateSiteMapAttributeTests() { _siteMap = new Mock <SiteMapBase>(); SiteMapDictionary siteMaps = new SiteMapDictionary { { "mySiteMap", _siteMap.Object } }; _attribute = new PopulateSiteMapAttribute(siteMaps) { SiteMapName = "mySiteMap" }; }
public SiteMapDictionaryTests() { _sitemaps = new SiteMapDictionary(); }
public PopulateSiteMapAttribute(SiteMapDictionary siteMaps) { Check.Argument.IsNotNull(siteMaps, "siteMaps"); SiteMaps = siteMaps; }
/// <summary> /// Initializes a new instance of the <see cref="PopulateSiteMapAttribute"/> class. /// </summary> /// <param name="siteMaps">The site maps.</param> public PopulateSiteMapAttribute(SiteMapDictionary siteMaps) { Guard.IsNotNull(siteMaps, "siteMaps"); SiteMaps = siteMaps; }
/// <summary> /// Initializes a new instance of the <see cref="PopulateSiteMapAttribute"/> class. /// </summary> /// <param name="siteMaps">The site maps.</param> public PopulateSiteMapAttribute(SiteMapDictionary siteMaps) { SiteMaps = siteMaps; }