Fix tests by reintroducing some files in Umbraco.Web

Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Bjarke Berg
2020-06-10 10:23:36 +02:00
parent 835b04273f
commit aa7637129c
12 changed files with 610 additions and 35 deletions

View File

@@ -30,9 +30,9 @@ namespace Umbraco.Tests.TestHelpers.ControllerTesting
var httpConfig = new HttpConfiguration();
// TODO: Enable this if you can't see the errors produced
//var traceWriter = httpConfig.EnableSystemDiagnosticsTracing();
//traceWriter.IsVerbose = true;
//traceWriter.MinimumLevel = TraceLevel.Debug;
// var traceWriter = httpConfig.EnableSystemDiagnosticsTracing();
// traceWriter.IsVerbose = true;
// traceWriter.MinimumLevel = TraceLevel.Debug;
httpConfig.IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Always;

View File

@@ -367,7 +367,7 @@ namespace Umbraco.Tests.Testing
Composition
.ComposeCoreMappingProfiles()
//.ComposeWebMappingProfiles()
.ComposeWebMappingProfiles()
;
}

View File

@@ -93,6 +93,7 @@
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.WebApi.Owin" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.WebApi.SelfHost" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.WebApi.Tracing" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.WebApi.WebHost" Version="5.2.7" />
<PackageReference Include="Microsoft.Owin" Version="4.0.1" />
<PackageReference Include="Microsoft.Owin.Hosting" Version="4.0.1" />

View File

@@ -115,7 +115,7 @@ namespace Umbraco.Tests.Web.Controllers
Composition.RegisterUnique(f => langService.Object);
Composition.RegisterUnique(f => textService.Object);
Composition.RegisterUnique(f => Mock.Of<ICultureDictionaryFactory>());
// Composition.RegisterUnique(f => new UmbracoApiControllerTypeCollection(new[] { typeof(ContentTreeController) }));
Composition.RegisterUnique(f => new UmbracoApiControllerTypeCollection(new Type[] { }));
}
private MultipartFormDataContent GetMultiPartRequestContent(string json)