Fix tests by reintroducing some files in Umbraco.Web
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -367,7 +367,7 @@ namespace Umbraco.Tests.Testing
|
||||
|
||||
Composition
|
||||
.ComposeCoreMappingProfiles()
|
||||
//.ComposeWebMappingProfiles()
|
||||
.ComposeWebMappingProfiles()
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user