Fixing tests, more DependencyInjection namespace

This commit is contained in:
Shannon
2020-12-23 13:06:22 +11:00
parent e8379d6c77
commit d5a19530f3
5 changed files with 8 additions and 6 deletions

View File

@@ -9,12 +9,12 @@ using Umbraco.Infrastructure.PublishedCache.Persistence;
using Umbraco.Web.PublishedCache; using Umbraco.Web.PublishedCache;
using Umbraco.Web.PublishedCache.NuCache; using Umbraco.Web.PublishedCache.NuCache;
namespace Umbraco.Infrastructure.PublishedCache.Extensions namespace Umbraco.Infrastructure.PublishedCache.DependencyInjection
{ {
/// <summary> /// <summary>
/// Extension methods for <see cref="IUmbracoBuilder"/> for the Umbraco's NuCache /// Extension methods for <see cref="IUmbracoBuilder"/> for the Umbraco's NuCache
/// </summary> /// </summary>
public static class NuCacheUmbracoBuilderExtensions public static class UmbracoBuilderExtensions
{ {
/// <summary> /// <summary>
/// Adds Umbraco NuCache dependencies /// Adds Umbraco NuCache dependencies

View File

@@ -1,4 +1,4 @@
using System.Net; using System.Net;
using System.Threading.Tasks; using System.Threading.Tasks;
using NUnit.Framework; using NUnit.Framework;
using Umbraco.Tests.Testing; using Umbraco.Tests.Testing;
@@ -7,7 +7,7 @@ using Umbraco.Web.BackOffice.Controllers;
namespace Umbraco.Tests.Integration.TestServerTest.Controllers namespace Umbraco.Tests.Integration.TestServerTest.Controllers
{ {
[TestFixture] [TestFixture]
public class BackOfficeAssetsControllerTests: UmbracoTestServerTestBase public class BackOfficeAssetsControllerTests : UmbracoTestServerTestBase
{ {
[Test] [Test]
public async Task EnsureSuccessStatusCode() public async Task EnsureSuccessStatusCode()

View File

@@ -15,6 +15,7 @@ using Umbraco.Core;
using Umbraco.Core.Cache; using Umbraco.Core.Cache;
using Umbraco.Core.DependencyInjection; using Umbraco.Core.DependencyInjection;
using Umbraco.Extensions; using Umbraco.Extensions;
using Umbraco.Infrastructure.PublishedCache.DependencyInjection;
using Umbraco.Tests.Integration.Testing; using Umbraco.Tests.Integration.Testing;
using Umbraco.Tests.Testing; using Umbraco.Tests.Testing;
using Umbraco.Web; using Umbraco.Web;
@@ -153,6 +154,7 @@ namespace Umbraco.Tests.Integration.TestServerTest
mvcBuilder.AddApplicationPart(typeof(SurfaceController).Assembly); mvcBuilder.AddApplicationPart(typeof(SurfaceController).Assembly);
}) })
.AddWebServer() .AddWebServer()
.AddNuCache()
.Build(); .Build();
} }

View File

@@ -2,7 +2,7 @@ using System;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Umbraco.Core.DependencyInjection; using Umbraco.Core.DependencyInjection;
using Umbraco.Infrastructure.PublishedCache.Extensions; using Umbraco.Infrastructure.PublishedCache.DependencyInjection;
using Umbraco.Web.BackOffice.Authorization; using Umbraco.Web.BackOffice.Authorization;
using Umbraco.Web.BackOffice.Security; using Umbraco.Web.BackOffice.Security;
using Umbraco.Web.BackOffice.Trees; using Umbraco.Web.BackOffice.Trees;

View File

@@ -2,7 +2,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options; using Microsoft.Extensions.Options;
using Umbraco.Core.DependencyInjection; using Umbraco.Core.DependencyInjection;
using Umbraco.Infrastructure.PublishedCache.Extensions; using Umbraco.Infrastructure.PublishedCache.DependencyInjection;
using Umbraco.Web.Website.Controllers; using Umbraco.Web.Website.Controllers;
using Umbraco.Web.Website.Routing; using Umbraco.Web.Website.Routing;
using Umbraco.Web.Website.ViewEngines; using Umbraco.Web.Website.ViewEngines;