Release/v2.1.0 #44
@@ -20,13 +20,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Testing", "Testing", "{EEA2
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{1D98E5DE-CB8B-4C1C-A319-D49AC137441A}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{1D98E5DE-CB8B-4C1C-A319-D49AC137441A}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Database.Tests", "tests\HopFrame.Database.Tests\HopFrame.Database.Tests.csproj", "{1CAAC943-B8FE-48DD-9712-92699647DE18}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Tests.Database", "tests\HopFrame.Tests.Database\HopFrame.Tests.Database.csproj", "{1CAAC943-B8FE-48DD-9712-92699647DE18}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Security.Tests", "tests\HopFrame.Security.Tests\HopFrame.Security.Tests.csproj", "{6747753A-6059-48F1-B779-D73765A373A6}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Tests.Security", "tests\HopFrame.Tests.Security\HopFrame.Tests.Security.csproj", "{6747753A-6059-48F1-B779-D73765A373A6}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Api.Tests", "tests\HopFrame.Api.Tests\HopFrame.Api.Tests.csproj", "{25DE1510-47E5-46FF-89A4-B9F99542218E}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Tests.Api", "tests\HopFrame.Tests.Api\HopFrame.Tests.Api.csproj", "{25DE1510-47E5-46FF-89A4-B9F99542218E}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Web.Tests", "tests\HopFrame.Web.Tests\HopFrame.Web.Tests.csproj", "{566C13B9-4ECA-48C4-8D02-FEB6CDF523E6}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Tests.Web", "tests\HopFrame.Tests.Web\HopFrame.Tests.Web.csproj", "{566C13B9-4ECA-48C4-8D02-FEB6CDF523E6}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
||||||
<_Parameter1>HopFrame.Api.Tests</_Parameter1>
|
<_Parameter1>HopFrame.Tests.Api</_Parameter1>
|
||||||
</AssemblyAttribute>
|
</AssemblyAttribute>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
||||||
<_Parameter1>HopFrame.Database.Tests</_Parameter1>
|
<_Parameter1>HopFrame.Tests.Database</_Parameter1>
|
||||||
</AssemblyAttribute>
|
</AssemblyAttribute>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
||||||
<_Parameter1>HopFrame.Web.Tests</_Parameter1>
|
<_Parameter1>HopFrame.Tests.Web</_Parameter1>
|
||||||
</AssemblyAttribute>
|
</AssemblyAttribute>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Security.Claims;
|
|||||||
using HopFrame.Api.Logic;
|
using HopFrame.Api.Logic;
|
||||||
using HopFrame.Api.Logic.Implementation;
|
using HopFrame.Api.Logic.Implementation;
|
||||||
using HopFrame.Api.Models;
|
using HopFrame.Api.Models;
|
||||||
using HopFrame.Api.Tests.Extensions;
|
using HopFrame.Tests.Api.Extensions;
|
||||||
using HopFrame.Database.Models;
|
using HopFrame.Database.Models;
|
||||||
using HopFrame.Database.Repositories;
|
using HopFrame.Database.Repositories;
|
||||||
using HopFrame.Security.Authentication;
|
using HopFrame.Security.Authentication;
|
||||||
@@ -12,7 +12,7 @@ using HopFrame.Security.Models;
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Moq;
|
using Moq;
|
||||||
|
|
||||||
namespace HopFrame.Api.Tests;
|
namespace HopFrame.Tests.Api;
|
||||||
|
|
||||||
public class AuthLogicTests {
|
public class AuthLogicTests {
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Web;
|
using System.Web;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
|
|
||||||
namespace HopFrame.Api.Tests.Extensions;
|
namespace HopFrame.Tests.Api.Extensions;
|
||||||
|
|
||||||
internal static class HttpContextExtensions {
|
internal static class HttpContextExtensions {
|
||||||
/// <summary>Extracts the partial cookie value from the header section.</summary>
|
/// <summary>Extracts the partial cookie value from the header section.</summary>
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
|
using HopFrame.Database;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace HopFrame.Database.Tests.Data;
|
namespace HopFrame.Tests.Database.Data;
|
||||||
|
|
||||||
public class DatabaseContext : HopDbContextBase {
|
public class DatabaseContext : HopDbContextBase {
|
||||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
namespace HopFrame.Database.Tests;
|
using HopFrame.Database;
|
||||||
|
|
||||||
|
namespace HopFrame.Tests.Database;
|
||||||
|
|
||||||
public class PermissionValidatorTests {
|
public class PermissionValidatorTests {
|
||||||
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using HopFrame.Database.Models;
|
using HopFrame.Database.Models;
|
||||||
using HopFrame.Database.Repositories;
|
using HopFrame.Database.Repositories;
|
||||||
using HopFrame.Database.Repositories.Implementation;
|
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 {
|
public class GroupRepositoryTests {
|
||||||
|
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
using HopFrame.Database.Models;
|
using HopFrame.Database.Models;
|
||||||
using HopFrame.Database.Repositories;
|
using HopFrame.Database.Repositories;
|
||||||
using HopFrame.Database.Repositories.Implementation;
|
using HopFrame.Database.Repositories.Implementation;
|
||||||
using HopFrame.Database.Tests.Data;
|
using HopFrame.Tests.Database.Data;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace HopFrame.Database.Tests.Repositories;
|
namespace HopFrame.Tests.Database.Repositories;
|
||||||
|
|
||||||
public class PermissionRepositoryTests {
|
public class PermissionRepositoryTests {
|
||||||
|
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
using HopFrame.Database.Models;
|
using HopFrame.Database.Models;
|
||||||
using HopFrame.Database.Repositories;
|
using HopFrame.Database.Repositories;
|
||||||
using HopFrame.Database.Repositories.Implementation;
|
using HopFrame.Database.Repositories.Implementation;
|
||||||
using HopFrame.Database.Tests.Data;
|
using HopFrame.Tests.Database.Data;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace HopFrame.Database.Tests.Repositories;
|
namespace HopFrame.Tests.Database.Repositories;
|
||||||
|
|
||||||
public class TokenRepositoryTests {
|
public class TokenRepositoryTests {
|
||||||
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using HopFrame.Database.Models;
|
using HopFrame.Database.Models;
|
||||||
using HopFrame.Database.Repositories;
|
using HopFrame.Database.Repositories;
|
||||||
using HopFrame.Database.Repositories.Implementation;
|
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 {
|
public class UserRepositoryTests {
|
||||||
|
|
||||||
@@ -8,7 +8,7 @@ using Microsoft.Extensions.Logging;
|
|||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
using Moq;
|
using Moq;
|
||||||
|
|
||||||
namespace HopFrame.Security.Tests;
|
namespace HopFrame.Tests.Security;
|
||||||
|
|
||||||
public class AuthenticationTests {
|
public class AuthenticationTests {
|
||||||
|
|
||||||
@@ -2,14 +2,14 @@ using System.Security.Claims;
|
|||||||
using HopFrame.Security.Authentication;
|
using HopFrame.Security.Authentication;
|
||||||
using HopFrame.Security.Authorization;
|
using HopFrame.Security.Authorization;
|
||||||
using HopFrame.Security.Claims;
|
using HopFrame.Security.Claims;
|
||||||
using Microsoft.AspNetCore.Routing;
|
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.Abstractions;
|
using Microsoft.AspNetCore.Mvc.Abstractions;
|
||||||
using Microsoft.AspNetCore.Mvc.Filters;
|
using Microsoft.AspNetCore.Mvc.Filters;
|
||||||
|
using Microsoft.AspNetCore.Routing;
|
||||||
using Moq;
|
using Moq;
|
||||||
|
|
||||||
namespace HopFrame.Security.Tests;
|
namespace HopFrame.Tests.Security;
|
||||||
|
|
||||||
public class AuthorizationTests {
|
public class AuthorizationTests {
|
||||||
|
|
||||||
@@ -2,11 +2,12 @@ using System.Security.Claims;
|
|||||||
using HopFrame.Database.Models;
|
using HopFrame.Database.Models;
|
||||||
using HopFrame.Database.Repositories;
|
using HopFrame.Database.Repositories;
|
||||||
using HopFrame.Security.Claims;
|
using HopFrame.Security.Claims;
|
||||||
|
using HopFrame.Web;
|
||||||
using HopFrame.Web.Services;
|
using HopFrame.Web.Services;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Moq;
|
using Moq;
|
||||||
|
|
||||||
namespace HopFrame.Web.Tests;
|
namespace HopFrame.Tests.Web;
|
||||||
|
|
||||||
public class AuthMiddlewareTests {
|
public class AuthMiddlewareTests {
|
||||||
private readonly RequestDelegate _delegate = _ => Task.CompletedTask;
|
private readonly RequestDelegate _delegate = _ => Task.CompletedTask;
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
using HopFrame.Api.Tests.Extensions;
|
|
||||||
using HopFrame.Database.Models;
|
using HopFrame.Database.Models;
|
||||||
using HopFrame.Database.Repositories;
|
using HopFrame.Database.Repositories;
|
||||||
using HopFrame.Security.Claims;
|
using HopFrame.Security.Claims;
|
||||||
using HopFrame.Security.Models;
|
using HopFrame.Security.Models;
|
||||||
|
using HopFrame.Tests.Web.Extensions;
|
||||||
using HopFrame.Web.Services;
|
using HopFrame.Web.Services;
|
||||||
using HopFrame.Web.Services.Implementation;
|
using HopFrame.Web.Services.Implementation;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Moq;
|
using Moq;
|
||||||
|
|
||||||
namespace HopFrame.Web.Tests;
|
namespace HopFrame.Tests.Web;
|
||||||
|
|
||||||
public class AuthServiceTests {
|
public class AuthServiceTests {
|
||||||
private readonly Guid _refreshToken = Guid.NewGuid();
|
private readonly Guid _refreshToken = Guid.NewGuid();
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Web;
|
using System.Web;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
|
|
||||||
namespace HopFrame.Api.Tests.Extensions;
|
namespace HopFrame.Tests.Web.Extensions;
|
||||||
|
|
||||||
internal static class HttpContextExtensions {
|
internal static class HttpContextExtensions {
|
||||||
/// <summary>Extracts the partial cookie value from the header section.</summary>
|
/// <summary>Extracts the partial cookie value from the header section.</summary>
|
||||||
Reference in New Issue
Block a user