Added a transfer funds handler using a-frame and wolverine.

This commit is contained in:
2026-07-14 16:57:03 +02:00
parent 9de9777926
commit 0de38ef2df
7 changed files with 105 additions and 25 deletions
@@ -0,0 +1,20 @@
using FinancialApi.Application;
using Microsoft.EntityFrameworkCore;
namespace FinancialApi.Infrastructure;
public class AccountDbContext(DbContextOptions<AccountDbContext> options) : DbContext(options)
{
public DbSet<Account> Accounts => Set<Account>();
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Account>()
.HasKey(x => x.Id);
modelBuilder.Entity<Account>().HasData(
new Account(1, 100.00m),
new Account(2, 500.00m)
);
}
}