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.NuCache;
namespace Umbraco.Infrastructure.PublishedCache.Extensions
namespace Umbraco.Infrastructure.PublishedCache.DependencyInjection
{
/// <summary>
/// Extension methods for <see cref="IUmbracoBuilder"/> for the Umbraco's NuCache
/// </summary>
public static class NuCacheUmbracoBuilderExtensions
public static class UmbracoBuilderExtensions
{
/// <summary>
/// Adds Umbraco NuCache dependencies

View File

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

View File

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

View File

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

View File

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