Let IOHelper use IHostingEnvironment

This commit is contained in:
Bjarke Berg
2019-12-04 14:03:39 +01:00
parent d2bf64195e
commit 28ecb355dd
134 changed files with 697 additions and 352 deletions

View File

@@ -34,7 +34,8 @@ namespace Umbraco.Tests.Web
new List<IUrlProvider>(),
Enumerable.Empty<IMediaUrlProvider>(),
TestObjects.GetGlobalSettings(),
new TestVariationContextAccessor());
new TestVariationContextAccessor(),
IOHelper);
var r1 = new RouteData();
r1.DataTokens.Add(Core.Constants.Web.UmbracoContextDataToken, umbCtx);
@@ -53,7 +54,8 @@ namespace Umbraco.Tests.Web
new List<IUrlProvider>(),
Enumerable.Empty<IMediaUrlProvider>(),
TestObjects.GetGlobalSettings(),
new TestVariationContextAccessor());
new TestVariationContextAccessor(),
IOHelper);
var r1 = new RouteData();
r1.DataTokens.Add(Core.Constants.Web.UmbracoContextDataToken, umbCtx);
@@ -82,7 +84,8 @@ namespace Umbraco.Tests.Web
new List<IUrlProvider>(),
Enumerable.Empty<IMediaUrlProvider>(),
TestObjects.GetGlobalSettings(),
new TestVariationContextAccessor());
new TestVariationContextAccessor(),
IOHelper);
var httpContext = Mock.Of<HttpContextBase>();