tests(api): add integration test for happy path when logging in
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
using FiscalOS.Core.Authentication;
|
||||
|
||||
namespace FiscalOS.API.Login;
|
||||
|
||||
internal static class Endpoint
|
||||
|
||||
@@ -4,6 +4,12 @@ internal sealed record Response
|
||||
{
|
||||
public string AccessToken { get; init; }
|
||||
|
||||
[JsonConstructor]
|
||||
private Response()
|
||||
{
|
||||
AccessToken = string.Empty;
|
||||
}
|
||||
|
||||
private Response(string accessToken)
|
||||
{
|
||||
AccessToken = accessToken;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
global using System.ComponentModel.DataAnnotations;
|
||||
global using System.Text.Json.Serialization;
|
||||
|
||||
global using FiscalOS.API.Login;
|
||||
global using FiscalOS.Core.Authentication;
|
||||
global using FiscalOS.Infra.Data;
|
||||
global using FiscalOS.Infra.DependencyInjection;
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using FiscalOS.Core.Data;
|
||||
|
||||
namespace FiscalOS.Infra.Data;
|
||||
|
||||
public sealed class AppDbContext(IOptions<AppDbContextOptions> ctxOptions) : DbContext
|
||||
|
||||
@@ -4,6 +4,7 @@ global using System.Security.Cryptography;
|
||||
global using System.Text;
|
||||
|
||||
global using FiscalOS.Core.Authentication;
|
||||
global using FiscalOS.Core.Data;
|
||||
global using FiscalOS.Core.Identity;
|
||||
global using FiscalOS.Infra.Authentication;
|
||||
global using FiscalOS.Infra.Data;
|
||||
|
||||
Reference in New Issue
Block a user