Rename auth feature to Features.Users (#281)

This commit is contained in:
Aaron Po
2026-09-06 01:23:51 -04:00
committed by GitHub
parent d958933250
commit 9d5a463d93
79 changed files with 190 additions and 192 deletions

View File

@@ -1,16 +1,16 @@
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using Domain.Exceptions;
using Features.Auth.Commands.Authentication.ConfirmUser;
using Features.Auth.Dtos;
using Features.Auth.Identity;
using Features.Auth.Services;
using Features.Auth.Tests.TestSupport;
using Features.Users.Commands.Authentication.ConfirmUser;
using Features.Users.Dtos;
using Features.Users.Identity;
using Features.Users.Services;
using Features.Users.Tests.TestSupport;
using FluentAssertions;
using Microsoft.AspNetCore.Identity;
using Moq;
namespace Features.Auth.Tests.Commands;
namespace Features.Users.Tests.Commands;
public class ConfirmUserHandlerTests
{

View File

@@ -1,12 +1,12 @@
using Domain.Exceptions;
using Features.Auth.Commands.Account.DeleteAccount;
using Features.Auth.Identity;
using Features.Auth.Tests.TestSupport;
using Features.Users.Commands.Account.DeleteAccount;
using Features.Users.Identity;
using Features.Users.Tests.TestSupport;
using FluentAssertions;
using Microsoft.AspNetCore.Identity;
using Moq;
namespace Features.Auth.Tests.Commands;
namespace Features.Users.Tests.Commands;
public class DeleteAccountHandlerTests
{

View File

@@ -1,10 +1,10 @@
using Features.Auth.Commands.Authentication.RefreshToken;
using Features.Auth.Dtos;
using Features.Auth.Services;
using Features.Users.Commands.Authentication.RefreshToken;
using Features.Users.Dtos;
using Features.Users.Services;
using FluentAssertions;
using Moq;
namespace Features.Auth.Tests.Commands;
namespace Features.Users.Tests.Commands;
public class RefreshTokenHandlerTests
{

View File

@@ -1,16 +1,16 @@
using Domain.Exceptions;
using Features.Auth.Commands.Authentication.RegisterUser;
using Features.Auth.Dtos;
using Features.Auth.Identity;
using Features.Auth.Notifications;
using Features.Auth.Services;
using Features.Auth.Tests.TestSupport;
using Features.Users.Commands.Authentication.RegisterUser;
using Features.Users.Dtos;
using Features.Users.Identity;
using Features.Users.Notifications;
using Features.Users.Services;
using Features.Users.Tests.TestSupport;
using FluentAssertions;
using MediatR;
using Microsoft.AspNetCore.Identity;
using Moq;
namespace Features.Auth.Tests.Commands;
namespace Features.Users.Tests.Commands;
public class RegisterUserHandlerTests
{

View File

@@ -1,13 +1,13 @@
using Features.Auth.Commands.Authentication.ResendConfirmationEmail;
using Features.Auth.Identity;
using Features.Auth.Notifications;
using Features.Auth.Services;
using Features.Auth.Tests.TestSupport;
using Features.Users.Commands.Authentication.ResendConfirmationEmail;
using Features.Users.Identity;
using Features.Users.Notifications;
using Features.Users.Services;
using Features.Users.Tests.TestSupport;
using MediatR;
using Microsoft.AspNetCore.Identity;
using Moq;
namespace Features.Auth.Tests.Commands;
namespace Features.Users.Tests.Commands;
public class ResendConfirmationEmailHandlerTests
{

View File

@@ -1,13 +1,13 @@
using Domain.Exceptions;
using Features.Auth.Commands.Account.UpdateEmail;
using Features.Auth.Dtos;
using Features.Auth.Identity;
using Features.Auth.Tests.TestSupport;
using Features.Users.Commands.Account.UpdateEmail;
using Features.Users.Dtos;
using Features.Users.Identity;
using Features.Users.Tests.TestSupport;
using FluentAssertions;
using Microsoft.AspNetCore.Identity;
using Moq;
namespace Features.Auth.Tests.Commands;
namespace Features.Users.Tests.Commands;
public class UpdateEmailHandlerTests
{

View File

@@ -1,13 +1,13 @@
using Domain.Exceptions;
using Features.Auth.Commands.Account.UpdatePassword;
using Features.Auth.Dtos;
using Features.Auth.Identity;
using Features.Auth.Tests.TestSupport;
using Features.Users.Commands.Account.UpdatePassword;
using Features.Users.Dtos;
using Features.Users.Identity;
using Features.Users.Tests.TestSupport;
using FluentAssertions;
using Microsoft.AspNetCore.Identity;
using Moq;
namespace Features.Auth.Tests.Commands;
namespace Features.Users.Tests.Commands;
public class UpdatePasswordHandlerTests
{

View File

@@ -1,13 +1,13 @@
using Domain.Exceptions;
using Features.Auth.Commands.Profile.UpdateProfile;
using Features.Auth.Dtos;
using Features.Auth.Identity;
using Features.Auth.Tests.TestSupport;
using Features.Users.Commands.Profile.UpdateProfile;
using Features.Users.Dtos;
using Features.Users.Identity;
using Features.Users.Tests.TestSupport;
using FluentAssertions;
using Microsoft.AspNetCore.Identity;
using Moq;
namespace Features.Auth.Tests.Commands;
namespace Features.Users.Tests.Commands;
public class UpdateProfileHandlerTests
{

View File

@@ -1,13 +1,13 @@
using Domain.Exceptions;
using Features.Auth.Commands.Account.UpdateUsername;
using Features.Auth.Dtos;
using Features.Auth.Identity;
using Features.Auth.Tests.TestSupport;
using Features.Users.Commands.Account.UpdateUsername;
using Features.Users.Dtos;
using Features.Users.Identity;
using Features.Users.Tests.TestSupport;
using FluentAssertions;
using Microsoft.AspNetCore.Identity;
using Moq;
namespace Features.Auth.Tests.Commands;
namespace Features.Users.Tests.Commands;
public class UpdateUsernameHandlerTests
{

View File

@@ -4,7 +4,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<RootNamespace>Features.Auth.Tests</RootNamespace>
<RootNamespace>Features.Users.Tests</RootNamespace>
</PropertyGroup>
<ItemGroup>

View File

@@ -1,10 +1,10 @@
using Domain.Entities;
using Features.Auth.Queries.GetAllUsers;
using Features.Auth.Repository;
using Features.Users.Queries.GetAllUsers;
using Features.Users.Repository;
using FluentAssertions;
using Moq;
namespace Features.Auth.Tests.Queries;
namespace Features.Users.Tests.Queries;
public class GetAllUsersHandlerTests
{

View File

@@ -1,11 +1,11 @@
using Domain.Entities;
using Domain.Exceptions;
using Features.Auth.Queries.GetUserById;
using Features.Auth.Repository;
using Features.Users.Queries.GetUserById;
using Features.Users.Repository;
using FluentAssertions;
using Moq;
namespace Features.Auth.Tests.Queries;
namespace Features.Users.Tests.Queries;
public class GetUserByIdHandlerTests
{

View File

@@ -1,14 +1,14 @@
using Domain.Exceptions;
using Features.Auth.Commands.Authentication.Login;
using Features.Auth.Dtos;
using Features.Auth.Identity;
using Features.Auth.Services;
using Features.Auth.Tests.TestSupport;
using Features.Users.Commands.Authentication.Login;
using Features.Users.Dtos;
using Features.Users.Identity;
using Features.Users.Services;
using Features.Users.Tests.TestSupport;
using FluentAssertions;
using Microsoft.AspNetCore.Identity;
using Moq;
namespace Features.Auth.Tests.Queries;
namespace Features.Users.Tests.Queries;
public class LoginHandlerTests
{

View File

@@ -1,9 +1,9 @@
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using Domain.Exceptions;
using Features.Auth.Identity;
using Features.Auth.Services;
using Features.Auth.Tests.TestSupport;
using Features.Users.Identity;
using Features.Users.Services;
using Features.Users.Tests.TestSupport;
using FluentAssertions;
using Infrastructure.Configuration;
using Infrastructure.Jwt;
@@ -11,7 +11,7 @@ using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Configuration;
using Moq;
namespace Features.Auth.Tests.Services;
namespace Features.Users.Tests.Services;
public class TokenServiceRefreshTests
{

View File

@@ -1,15 +1,15 @@
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using Domain.Exceptions;
using Features.Auth.Services;
using Features.Auth.Tests.TestSupport;
using Features.Users.Services;
using Features.Users.Tests.TestSupport;
using FluentAssertions;
using Infrastructure.Configuration;
using Infrastructure.Jwt;
using Microsoft.Extensions.Configuration;
using Moq;
namespace Features.Auth.Tests.Services;
namespace Features.Users.Tests.Services;
public class TokenServiceValidationTests
{

View File

@@ -1,8 +1,8 @@
using Features.Auth.Identity;
using Features.Users.Identity;
using Microsoft.AspNetCore.Identity;
using Moq;
namespace Features.Auth.Tests.TestSupport;
namespace Features.Users.Tests.TestSupport;
public static class UserManagerMockFactory
{