Adjust location of classes further.

This commit is contained in:
2026-07-17 17:10:28 +02:00
parent 69cb05f389
commit 29d179a23a
21 changed files with 82 additions and 56 deletions
@@ -1,12 +1,14 @@
using FinancialApi.Application.Commands;
using FinancialApi.Application.Handlers;
using FinancialApi.Application.Queries;
using FinancialApi.Application.Interfaces;
using FinancialApi.Application.Models;
using Microsoft.EntityFrameworkCore;
namespace FinancialApi.Infrastructure;
public class ReversalQuery(AccountDbContext db, TimeProvider timeProvider) : IReversalQuery
{
public async Task<ReversalData?> GetReversalDataAsync(Guid journalEntryId)
public async Task<JournalReversalContext?> GetReversalDataAsync(Guid journalEntryId)
{
var entry = await db.JournalEntries
.Include(x => x.Lines)
@@ -25,6 +27,6 @@ public class ReversalQuery(AccountDbContext db, TimeProvider timeProvider) : IRe
.Where(a => accountIds.Contains(a.Id))
.ToListAsync();
return new ReversalData(entry, accounts, timeProvider.GetUtcNow());
return new JournalReversalContext(entry, accounts, timeProvider.GetUtcNow());
}
}