Renamed test projects
This commit is contained in:
@@ -3,7 +3,7 @@ using System.Security.Claims;
|
||||
using HopFrame.Api.Logic;
|
||||
using HopFrame.Api.Logic.Implementation;
|
||||
using HopFrame.Api.Models;
|
||||
using HopFrame.Api.Tests.Extensions;
|
||||
using HopFrame.Tests.Api.Extensions;
|
||||
using HopFrame.Database.Models;
|
||||
using HopFrame.Database.Repositories;
|
||||
using HopFrame.Security.Authentication;
|
||||
@@ -12,7 +12,7 @@ using HopFrame.Security.Models;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Moq;
|
||||
|
||||
namespace HopFrame.Api.Tests;
|
||||
namespace HopFrame.Tests.Api;
|
||||
|
||||
public class AuthLogicTests {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Web;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
namespace HopFrame.Api.Tests.Extensions;
|
||||
namespace HopFrame.Tests.Api.Extensions;
|
||||
|
||||
internal static class HttpContextExtensions {
|
||||
/// <summary>Extracts the partial cookie value from the header section.</summary>
|
||||
@@ -1,6 +1,7 @@
|
||||
using HopFrame.Database;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace HopFrame.Database.Tests.Data;
|
||||
namespace HopFrame.Tests.Database.Data;
|
||||
|
||||
public class DatabaseContext : HopDbContextBase {
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace HopFrame.Database.Tests;
|
||||
using HopFrame.Database;
|
||||
|
||||
namespace HopFrame.Tests.Database;
|
||||
|
||||
public class PermissionValidatorTests {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using HopFrame.Database.Models;
|
||||
using HopFrame.Database.Repositories;
|
||||
using HopFrame.Database.Repositories.Implementation;
|
||||
using HopFrame.Database.Tests.Data;
|
||||
using HopFrame.Tests.Database.Data;
|
||||
|
||||
namespace HopFrame.Database.Tests.Repositories;
|
||||
namespace HopFrame.Tests.Database.Repositories;
|
||||
|
||||
public class GroupRepositoryTests {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using HopFrame.Database.Models;
|
||||
using HopFrame.Database.Repositories;
|
||||
using HopFrame.Database.Repositories.Implementation;
|
||||
using HopFrame.Database.Tests.Data;
|
||||
using HopFrame.Tests.Database.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace HopFrame.Database.Tests.Repositories;
|
||||
namespace HopFrame.Tests.Database.Repositories;
|
||||
|
||||
public class PermissionRepositoryTests {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using HopFrame.Database.Models;
|
||||
using HopFrame.Database.Repositories;
|
||||
using HopFrame.Database.Repositories.Implementation;
|
||||
using HopFrame.Database.Tests.Data;
|
||||
using HopFrame.Tests.Database.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace HopFrame.Database.Tests.Repositories;
|
||||
namespace HopFrame.Tests.Database.Repositories;
|
||||
|
||||
public class TokenRepositoryTests {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using HopFrame.Database.Models;
|
||||
using HopFrame.Database.Repositories;
|
||||
using HopFrame.Database.Repositories.Implementation;
|
||||
using HopFrame.Database.Tests.Data;
|
||||
using HopFrame.Tests.Database.Data;
|
||||
|
||||
namespace HopFrame.Database.Tests.Repositories;
|
||||
namespace HopFrame.Tests.Database.Repositories;
|
||||
|
||||
public class UserRepositoryTests {
|
||||
|
||||
@@ -8,7 +8,7 @@ using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Moq;
|
||||
|
||||
namespace HopFrame.Security.Tests;
|
||||
namespace HopFrame.Tests.Security;
|
||||
|
||||
public class AuthenticationTests {
|
||||
|
||||
@@ -2,14 +2,14 @@ using System.Security.Claims;
|
||||
using HopFrame.Security.Authentication;
|
||||
using HopFrame.Security.Authorization;
|
||||
using HopFrame.Security.Claims;
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.Abstractions;
|
||||
using Microsoft.AspNetCore.Mvc.Filters;
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
using Moq;
|
||||
|
||||
namespace HopFrame.Security.Tests;
|
||||
namespace HopFrame.Tests.Security;
|
||||
|
||||
public class AuthorizationTests {
|
||||
|
||||
@@ -2,11 +2,12 @@ using System.Security.Claims;
|
||||
using HopFrame.Database.Models;
|
||||
using HopFrame.Database.Repositories;
|
||||
using HopFrame.Security.Claims;
|
||||
using HopFrame.Web;
|
||||
using HopFrame.Web.Services;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Moq;
|
||||
|
||||
namespace HopFrame.Web.Tests;
|
||||
namespace HopFrame.Tests.Web;
|
||||
|
||||
public class AuthMiddlewareTests {
|
||||
private readonly RequestDelegate _delegate = _ => Task.CompletedTask;
|
||||
@@ -1,14 +1,14 @@
|
||||
using HopFrame.Api.Tests.Extensions;
|
||||
using HopFrame.Database.Models;
|
||||
using HopFrame.Database.Repositories;
|
||||
using HopFrame.Security.Claims;
|
||||
using HopFrame.Security.Models;
|
||||
using HopFrame.Tests.Web.Extensions;
|
||||
using HopFrame.Web.Services;
|
||||
using HopFrame.Web.Services.Implementation;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Moq;
|
||||
|
||||
namespace HopFrame.Web.Tests;
|
||||
namespace HopFrame.Tests.Web;
|
||||
|
||||
public class AuthServiceTests {
|
||||
private readonly Guid _refreshToken = Guid.NewGuid();
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Web;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
namespace HopFrame.Api.Tests.Extensions;
|
||||
namespace HopFrame.Tests.Web.Extensions;
|
||||
|
||||
internal static class HttpContextExtensions {
|
||||
/// <summary>Extracts the partial cookie value from the header section.</summary>
|
||||
Reference in New Issue
Block a user