mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 09:11:10 +00:00
Renames project content from Lumina to Nemera
This commit is contained in:
1 parent
0f659a4877
commit
c583c9327c
6127 files changed
+41884
-41884
No files matched your search
@@ -1,11 +1,11 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.DTO.Common;
|
||||
using Lumina.Presentation.Web.Common.DTO.Configuration;
|
||||
using Lumina.Presentation.Web.Common.DTO.FileSystemManagement;
|
||||
using Lumina.Presentation.Web.Common.Exceptions;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.Api;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.DTO.Configuration;
|
||||
using Nemera.Presentation.Web.Common.Api;
|
||||
using Nemera.Presentation.Web.Common.DTO.Common;
|
||||
using Nemera.Presentation.Web.Common.DTO.Configuration;
|
||||
using Nemera.Presentation.Web.Common.DTO.FileSystemManagement;
|
||||
using Nemera.Presentation.Web.Common.Exceptions;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.Api;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.DTO.Configuration;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.Options;
|
||||
using NSubstitute;
|
||||
@@ -19,7 +19,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Api;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Api;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="ApiHttpClient"/> class.
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Nemera.Presentation.Web.Common.Api;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
@@ -10,7 +10,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Api;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Api;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="ApiStreamResult"/> class.
|
||||
|
||||
+6
-6
@@ -1,9 +1,9 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.DTO.Configuration;
|
||||
using Lumina.Presentation.Web.Common.Exceptions;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.Api;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.DTO.Configuration;
|
||||
using Nemera.Presentation.Web.Common.Api;
|
||||
using Nemera.Presentation.Web.Common.DTO.Configuration;
|
||||
using Nemera.Presentation.Web.Common.Exceptions;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.Api;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.DTO.Configuration;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.Options;
|
||||
using NSubstitute;
|
||||
@@ -19,7 +19,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Api;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Api;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="StreamingApiHttpClient"/> class.
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Authorization;
|
||||
using Nemera.Presentation.Web.Common.Authorization;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Authorization;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="AuthorizationPolicies"/> class.
|
||||
|
||||
+8
-8
@@ -1,11 +1,11 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.Authorization;
|
||||
using Lumina.Presentation.Web.Common.Enums.Authorization;
|
||||
using Lumina.Presentation.Web.Common.Exceptions;
|
||||
using Lumina.Presentation.Web.Common.Http;
|
||||
using Lumina.Presentation.Web.Common.Responses.Authorization;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.Responses.Authorization;
|
||||
using Nemera.Presentation.Web.Common.Api;
|
||||
using Nemera.Presentation.Web.Common.Authorization;
|
||||
using Nemera.Presentation.Web.Common.Enums.Authorization;
|
||||
using Nemera.Presentation.Web.Common.Exceptions;
|
||||
using Nemera.Presentation.Web.Common.Http;
|
||||
using Nemera.Presentation.Web.Common.Responses.Authorization;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.Responses.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using NSubstitute;
|
||||
using Polly.CircuitBreaker;
|
||||
@@ -17,7 +17,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Authorization;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="AuthorizationService"/> class.
|
||||
|
||||
+6
-6
@@ -1,9 +1,9 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.Authorization;
|
||||
using Lumina.Presentation.Web.Common.Exceptions;
|
||||
using Lumina.Presentation.Web.Common.Http;
|
||||
using Lumina.Presentation.Web.Common.Responses.UsersManagement;
|
||||
using Nemera.Presentation.Web.Common.Api;
|
||||
using Nemera.Presentation.Web.Common.Authorization;
|
||||
using Nemera.Presentation.Web.Common.Exceptions;
|
||||
using Nemera.Presentation.Web.Common.Http;
|
||||
using Nemera.Presentation.Web.Common.Responses.UsersManagement;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using NSubstitute;
|
||||
@@ -16,7 +16,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Authorization;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="InitializationHandler"/> class.
|
||||
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Authorization;
|
||||
using Lumina.Presentation.Web.Common.Enums.Authorization;
|
||||
using Lumina.Presentation.Web.Common.Http;
|
||||
using Nemera.Presentation.Web.Common.Authorization;
|
||||
using Nemera.Presentation.Web.Common.Enums.Authorization;
|
||||
using Nemera.Presentation.Web.Common.Http;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using NSubstitute;
|
||||
@@ -10,10 +10,10 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Security.Claims;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using IAuthorizationService = Lumina.Presentation.Web.Common.Authorization.IAuthorizationService;
|
||||
using IAuthorizationService = Nemera.Presentation.Web.Common.Authorization.IAuthorizationService;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Authorization;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="PermissionAuthorizationHandler"/> class.
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Authorization;
|
||||
using Lumina.Presentation.Web.Common.Http;
|
||||
using Nemera.Presentation.Web.Common.Authorization;
|
||||
using Nemera.Presentation.Web.Common.Http;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using NSubstitute;
|
||||
@@ -9,10 +9,10 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Security.Claims;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using IAuthorizationService = Lumina.Presentation.Web.Common.Authorization.IAuthorizationService;
|
||||
using IAuthorizationService = Nemera.Presentation.Web.Common.Authorization.IAuthorizationService;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Authorization;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="RoleAuthorizationHandler"/> class.
|
||||
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.DTO.Configuration;
|
||||
using Lumina.Presentation.Web.Common.HealthChecks;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.Api;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.DTO.Configuration;
|
||||
using Nemera.Presentation.Web.Common.DTO.Configuration;
|
||||
using Nemera.Presentation.Web.Common.HealthChecks;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.Api;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.DTO.Configuration;
|
||||
using Microsoft.Extensions.Diagnostics.HealthChecks;
|
||||
using Microsoft.Extensions.Options;
|
||||
using NSubstitute;
|
||||
@@ -14,7 +14,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.HealthChecks;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.HealthChecks;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="ApiReachabilityHealthCheck"/> class.
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.Http;
|
||||
using Nemera.Presentation.Web.Common.Api;
|
||||
using Nemera.Presentation.Web.Common.Http;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
@@ -13,7 +13,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Http;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="ApiStreamProxy"/> class.
|
||||
|
||||
+6
-6
@@ -1,5 +1,5 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Localization;
|
||||
using Nemera.Presentation.Web.Common.Localization;
|
||||
using Microsoft.AspNetCore.Mvc.Localization;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using NSubstitute;
|
||||
@@ -7,7 +7,7 @@ using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Localization;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Localization;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="CoreHtmlLocalizerFactory"/> class.
|
||||
@@ -32,22 +32,22 @@ public class CoreHtmlLocalizerFactoryTests
|
||||
public void Create_WhenBaseNameStartsWithLocationCorePrefix_ShouldStripCoreSegment()
|
||||
{
|
||||
// Act
|
||||
IHtmlLocalizer localizer = _sut.Create("Lumina.Presentation.Web.Core.Views.Auth.Login", "Lumina.Presentation.Web");
|
||||
IHtmlLocalizer localizer = _sut.Create("Nemera.Presentation.Web.Core.Views.Auth.Login", "Nemera.Presentation.Web");
|
||||
|
||||
// Assert
|
||||
Assert.NotNull(localizer);
|
||||
_mockStringLocalizerFactory.Received(1).Create("Lumina.Presentation.Web.Views.Auth.Login", "Lumina.Presentation.Web");
|
||||
_mockStringLocalizerFactory.Received(1).Create("Nemera.Presentation.Web.Views.Auth.Login", "Nemera.Presentation.Web");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Create_WhenBaseNameDoesNotStartWithLocationCorePrefix_ShouldKeepBaseNameUnchanged()
|
||||
{
|
||||
// Act
|
||||
IHtmlLocalizer localizer = _sut.Create("Lumina.Presentation.Web.Views.Shared.Layout", "Lumina.Presentation.Web");
|
||||
IHtmlLocalizer localizer = _sut.Create("Nemera.Presentation.Web.Views.Shared.Layout", "Nemera.Presentation.Web");
|
||||
|
||||
// Assert
|
||||
Assert.NotNull(localizer);
|
||||
_mockStringLocalizerFactory.Received(1).Create("Lumina.Presentation.Web.Views.Shared.Layout", "Lumina.Presentation.Web");
|
||||
_mockStringLocalizerFactory.Received(1).Create("Nemera.Presentation.Web.Views.Shared.Layout", "Nemera.Presentation.Web");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Http;
|
||||
using Lumina.Presentation.Web.Common.Middlewares;
|
||||
using Nemera.Presentation.Web.Common.Http;
|
||||
using Nemera.Presentation.Web.Common.Middlewares;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Http.Features;
|
||||
using System;
|
||||
@@ -10,7 +10,7 @@ using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Middlewares;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Middlewares;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="CacheControlHeaderMiddleware"/> class.
|
||||
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.DTO.Common;
|
||||
using Lumina.Presentation.Web.Common.Exceptions;
|
||||
using Lumina.Presentation.Web.Common.Middlewares;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.DTO.Common;
|
||||
using Nemera.Presentation.Web.Common.DTO.Common;
|
||||
using Nemera.Presentation.Web.Common.Exceptions;
|
||||
using Nemera.Presentation.Web.Common.Middlewares;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.DTO.Common;
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
using Microsoft.AspNetCore.Authentication.Cookies;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
@@ -20,7 +20,7 @@ using System.Text.Json;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Middlewares;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Middlewares;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="ExceptionHandlingMiddleware"/> class.
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Middlewares;
|
||||
using Nemera.Presentation.Web.Common.Middlewares;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Http.Features;
|
||||
using Microsoft.AspNetCore.Localization;
|
||||
@@ -11,7 +11,7 @@ using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Middlewares;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Middlewares;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="NotFoundRedirectMiddleware"/> class.
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Playback;
|
||||
using Nemera.Presentation.Web.Common.Playback;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Playback;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Playback;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="PlaybackDeliveryId"/> class.
|
||||
|
||||
+4
-4
@@ -1,13 +1,13 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.DTO.Configuration;
|
||||
using Lumina.Presentation.Web.Common.Security;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.DTO.Configuration;
|
||||
using Nemera.Presentation.Web.Common.DTO.Configuration;
|
||||
using Nemera.Presentation.Web.Common.Security;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.DTO.Configuration;
|
||||
using Microsoft.Extensions.Options;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Security;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Security;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="CryptographyService"/> class.
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Services;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.Api;
|
||||
using Nemera.Presentation.Web.Common.Services;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.Api;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.Caching.Hybrid;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
@@ -15,7 +15,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Services;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="CachedAuthorizationHandler"/> class.
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Services;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.Api;
|
||||
using Nemera.Presentation.Web.Common.Services;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.Api;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.Caching.Hybrid;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
@@ -15,7 +15,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Services;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="CachedThemeHandler"/> class.
|
||||
@@ -76,7 +76,7 @@ public class CachedThemeHandlerTests
|
||||
|
||||
// Act
|
||||
await client.GetAsync("http://localhost:5214/api/v1/themes/current", CancellationToken.None);
|
||||
await client.PutAsync("http://localhost:5214/api/v1/themes/current", new StringContent("""{"themeId":"lumina-default"}""", Encoding.UTF8, "application/json"), CancellationToken.None);
|
||||
await client.PutAsync("http://localhost:5214/api/v1/themes/current", new StringContent("""{"themeId":"nemera-default"}""", Encoding.UTF8, "application/json"), CancellationToken.None);
|
||||
await client.GetAsync("http://localhost:5214/api/v1/themes/current", CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Services;
|
||||
using Nemera.Presentation.Web.Common.Services;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Services;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="ScriptIdentifierHelper"/> class.
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Services;
|
||||
using Nemera.Presentation.Web.Common.Services;
|
||||
using Microsoft.Extensions.Caching.Hybrid;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
@@ -8,7 +8,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Services;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="ThemeCachePreferenceService"/> class.
|
||||
|
||||
+9
-9
@@ -1,14 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Routes;
|
||||
using Lumina.Presentation.Web.Common.Services;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.TestHelpers;
|
||||
using Nemera.Presentation.Web.Common.Routes;
|
||||
using Nemera.Presentation.Web.Common.Services;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.TestHelpers;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using NSubstitute;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Services;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="UrlService"/> class.
|
||||
@@ -90,7 +90,7 @@ public class UrlServiceTests
|
||||
{
|
||||
// Arrange
|
||||
DefaultHttpContext httpContext = TestHttpContextFactory.Create(culture: "de-de");
|
||||
httpContext.Request.PathBase = "/lumina";
|
||||
httpContext.Request.PathBase = "/nemera";
|
||||
httpContext.Request.Host = new HostString("localhost:5012");
|
||||
httpContext.Request.Scheme = "https";
|
||||
_mockHttpContextAccessor.HttpContext.Returns(httpContext);
|
||||
@@ -99,7 +99,7 @@ public class UrlServiceTests
|
||||
string? url = _sut.GetAbsoluteUrl(WebRoutes.Authentication.REGISTER_VIEW);
|
||||
|
||||
// Assert
|
||||
Assert.Equal("https://localhost:5012/lumina/de-de/auth/register", url);
|
||||
Assert.Equal("https://localhost:5012/nemera/de-de/auth/register", url);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -202,7 +202,7 @@ public class UrlServiceTests
|
||||
{
|
||||
// Arrange
|
||||
DefaultHttpContext httpContext = TestHttpContextFactory.Create(culture: "de-de");
|
||||
httpContext.Request.PathBase = "/lumina";
|
||||
httpContext.Request.PathBase = "/nemera";
|
||||
httpContext.Request.Host = new HostString("localhost:5012");
|
||||
httpContext.Request.Scheme = "https";
|
||||
_mockHttpContextAccessor.HttpContext.Returns(httpContext);
|
||||
@@ -211,7 +211,7 @@ public class UrlServiceTests
|
||||
string? url = _sut.GetRelativeUrl(WebRoutes.Authentication.REGISTER_VIEW);
|
||||
|
||||
// Assert
|
||||
Assert.Equal("/lumina/de-de/auth/register", url);
|
||||
Assert.Equal("/nemera/de-de/auth/register", url);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -276,7 +276,7 @@ public class UrlServiceTests
|
||||
{
|
||||
// Arrange
|
||||
DefaultHttpContext httpContext = TestHttpContextFactory.Create(culture: "de-de");
|
||||
httpContext.Request.PathBase = "/lumina";
|
||||
httpContext.Request.PathBase = "/nemera";
|
||||
httpContext.Request.Host = new HostString("localhost:5012");
|
||||
httpContext.Request.Scheme = "https";
|
||||
_mockHttpContextAccessor.HttpContext.Returns(httpContext);
|
||||
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Primitives;
|
||||
using Lumina.Presentation.Web.Common.Validation;
|
||||
using Nemera.Presentation.Web.Common.Primitives;
|
||||
using Nemera.Presentation.Web.Common.Validation;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Setup;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Setup;
|
||||
|
||||
/// <summary>
|
||||
/// Validator extension methods for <see cref="IValidator{TRequest}"/> for unit tests.
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Primitives;
|
||||
using Lumina.Presentation.Web.Common.Validation;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.Validation;
|
||||
using Nemera.Presentation.Web.Common.Primitives;
|
||||
using Nemera.Presentation.Web.Common.Validation;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.Validation;
|
||||
using Microsoft.Extensions.Options;
|
||||
using NSubstitute;
|
||||
using System;
|
||||
@@ -10,7 +10,7 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Validation;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Validation;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="ValidationOptions{TOptions}"/> class.
|
||||
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Primitives;
|
||||
using Lumina.Presentation.Web.Common.Validation;
|
||||
using Nemera.Presentation.Web.Common.Primitives;
|
||||
using Nemera.Presentation.Web.Common.Validation;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Validation;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Validation;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="ValidationRuleForEach{TRequest, TItem}"/> class.
|
||||
|
||||
+6
-6
@@ -1,14 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.DTO.Configuration;
|
||||
using Lumina.Presentation.Web.Common.Primitives;
|
||||
using Lumina.Presentation.Web.Common.Validators;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.DTO.Configuration;
|
||||
using Lumina.Presentation.Web.UnitTests.Common.Setup;
|
||||
using Nemera.Presentation.Web.Common.DTO.Configuration;
|
||||
using Nemera.Presentation.Web.Common.Primitives;
|
||||
using Nemera.Presentation.Web.Common.Validators;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.DTO.Configuration;
|
||||
using Nemera.Presentation.Web.UnitTests.Common.Setup;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Validators;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Validators;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="EncryptionSettingsDtoValidator"/> class.
|
||||
|
||||
+6
-6
@@ -1,14 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.DTO.Configuration;
|
||||
using Lumina.Presentation.Web.Common.Primitives;
|
||||
using Lumina.Presentation.Web.Common.Validators;
|
||||
using Lumina.Presentation.Web.Fixtures.Common.DTO.Configuration;
|
||||
using Lumina.Presentation.Web.UnitTests.Common.Setup;
|
||||
using Nemera.Presentation.Web.Common.DTO.Configuration;
|
||||
using Nemera.Presentation.Web.Common.Primitives;
|
||||
using Nemera.Presentation.Web.Common.Validators;
|
||||
using Nemera.Presentation.Web.Fixtures.Common.DTO.Configuration;
|
||||
using Nemera.Presentation.Web.UnitTests.Common.Setup;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.UnitTests.Common.Validators;
|
||||
namespace Nemera.Presentation.Web.UnitTests.Common.Validators;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="ServerConfigurationDtoValidator"/> class.
|
||||
|
||||
Reference in new issue
Block a user