Inlines fixtures instantiation.

This commit is contained in:
BinaryAlley committed 2026-08-15 03:19:51 -07:00
1 parent b648e2f054
commit 59e16d645a
147 files changed
+190 -898

No files matched your search

@@ -25,7 +25,7 @@ public class ChangePasswordEndpointTests
{
private readonly ICommandHandler<ChangePasswordCommand, Result<ChangePasswordResponse>> _mockHandler;
private readonly ChangePasswordEndpoint _sut;
private readonly ChangePasswordRequestFixture _changePasswordRequestFixture;
private readonly ChangePasswordRequestFixture _changePasswordRequestFixture = new();
/// <summary>
/// Initializes a new instance of the <see cref="ChangePasswordEndpointTests"/> class.
@@ -34,7 +34,6 @@ public class ChangePasswordEndpointTests
{
_mockHandler = Substitute.For<ICommandHandler<ChangePasswordCommand, Result<ChangePasswordResponse>>>();
_sut = FastEndpoints.Factory.Create<ChangePasswordEndpoint>(_mockHandler);
_changePasswordRequestFixture = new ChangePasswordRequestFixture();
}
[Fact]
@@ -26,7 +26,7 @@ public class LoginEndpointTests
{
private readonly IQueryHandler<LoginUserQuery, Result<LoginResponse>> _mockHandler;
private readonly LoginEndpoint _sut;
private readonly LoginRequestFixture _loginRequestFixture;
private readonly LoginRequestFixture _loginRequestFixture = new();
/// <summary>
/// Initializes a new instance of the <see cref="LoginEndpointTests"/> class.
@@ -35,7 +35,6 @@ public class LoginEndpointTests
{
_mockHandler = Substitute.For<IQueryHandler<LoginUserQuery, Result<LoginResponse>>>();
_sut = Factory.Create<LoginEndpoint>(_mockHandler);
_loginRequestFixture = new LoginRequestFixture();
}
[Fact]
@@ -25,7 +25,7 @@ public class RecoverPasswordEndpointTests
{
private readonly ICommandHandler<RecoverPasswordCommand, Result<RecoverPasswordResponse>> _mockHandler;
private readonly RecoverPasswordEndpoint _sut;
private readonly RecoverPasswordRequestFixture _recoverPasswordRequestFixture;
private readonly RecoverPasswordRequestFixture _recoverPasswordRequestFixture = new();
/// <summary>
/// Initializes a new instance of the <see cref="RecoverPasswordEndpointTests"/> class.
@@ -34,7 +34,6 @@ public class RecoverPasswordEndpointTests
{
_mockHandler = Substitute.For<ICommandHandler<RecoverPasswordCommand, Result<RecoverPasswordResponse>>>();
_sut = FastEndpoints.Factory.Create<RecoverPasswordEndpoint>(_mockHandler);
_recoverPasswordRequestFixture = new RecoverPasswordRequestFixture();
}
[Fact]
@@ -25,7 +25,7 @@ public class RegisterEndpointTests
{
private readonly ICommandHandler<RegisterUserCommand, Result<RegistrationResponse>> _mockHandler;
private readonly RegisterEndpoint _sut;
private readonly RegistrationRequestFixture _registrationRequestFixture;
private readonly RegistrationRequestFixture _registrationRequestFixture = new();
/// <summary>
/// Initializes a new instance of the <see cref="RegisterEndpointTests"/> class.
@@ -34,7 +34,6 @@ public class RegisterEndpointTests
{
_mockHandler = Substitute.For<ICommandHandler<RegisterUserCommand, Result<RegistrationResponse>>>();
_sut = FastEndpoints.Factory.Create<RegisterEndpoint>(_mockHandler);
_registrationRequestFixture = new RegistrationRequestFixture();
}
[Fact]
@@ -29,7 +29,7 @@ public class GetAuthorizationEndpointTests
{
private readonly IQueryHandler<GetAuthorizationQuery, Result<AuthorizationResponse>> _mockHandler;
private readonly GetAuthorizationEndpoint _sut;
private readonly GetAuthorizationRequestFixture _getAuthorizationRequestFixture;
private readonly GetAuthorizationRequestFixture _getAuthorizationRequestFixture = new();
/// <summary>
/// Initializes a new instance of the <see cref="GetAuthorizationEndpointTests"/> class.
@@ -37,7 +37,6 @@ public class GetAuthorizationEndpointTests
public GetAuthorizationEndpointTests()
{
_mockHandler = Substitute.For<IQueryHandler<GetAuthorizationQuery, Result<AuthorizationResponse>>>();
_getAuthorizationRequestFixture = new GetAuthorizationRequestFixture();
_sut = Factory.Create<GetAuthorizationEndpoint>(_mockHandler);
}