fix names

This commit is contained in:
Oli Sturm
2026-04-23 18:45:47 +01:00
parent 7a6e565a49
commit af65d696a6
5 changed files with 5 additions and 5 deletions
@@ -12,7 +12,7 @@ public delegate void SaveAccount(Account accunt);
// we can create a named container // we can create a named container
// public sealed record AccountPersistence(LoadAccount Load, SaveAccount Save); // public sealed record AccountPersistence(LoadAccount Load, SaveAccount Save);
public static class InMemoryAccount public static class InMemoryAccountRepository
{ {
public static (LoadAccount, SaveAccount) Create() public static (LoadAccount, SaveAccount) Create()
{ {
+1 -1
View File
@@ -4,7 +4,7 @@ using CsharpFp1.Infrastructure;
Console.WriteLine("[csharp-fp1] Starting withdraw money demo..."); Console.WriteLine("[csharp-fp1] Starting withdraw money demo...");
var (loadAccount, saveAccount) = InMemoryAccount.Create(); var (loadAccount, saveAccount) = InMemoryAccountRepository.Create();
var withdrawMoney = AccountApplication.CreateWithdrawMoney(loadAccount, saveAccount); var withdrawMoney = AccountApplication.CreateWithdrawMoney(loadAccount, saveAccount);
var accountId = Guid.NewGuid(); var accountId = Guid.NewGuid();
+1 -1
View File
@@ -14,7 +14,7 @@ public class WithdrawMoneyTests
SaveAccount saveAccount SaveAccount saveAccount
) BuildHandler() ) BuildHandler()
{ {
var (loadAccount, saveAccount) = InMemoryAccount.Create(); var (loadAccount, saveAccount) = InMemoryAccountRepository.Create();
var withdraw = AccountApplication.CreateWithdrawMoney(loadAccount, saveAccount); var withdraw = AccountApplication.CreateWithdrawMoney(loadAccount, saveAccount);
return (withdraw, loadAccount, saveAccount); return (withdraw, loadAccount, saveAccount);
} }
@@ -12,7 +12,7 @@ public delegate void SaveAccount(Account accunt);
// we can create a named container // we can create a named container
// public sealed record AccountPersistence(LoadAccount Load, SaveAccount Save); // public sealed record AccountPersistence(LoadAccount Load, SaveAccount Save);
public static class InMemoryAccount public static class InMemoryAccountRepository
{ {
public static (LoadAccount, SaveAccount) Create() public static (LoadAccount, SaveAccount) Create()
{ {
+1 -1
View File
@@ -4,7 +4,7 @@ using CsharpFp2.Infrastructure;
Console.WriteLine("[csharp-fp2] Starting withdraw money demo..."); Console.WriteLine("[csharp-fp2] Starting withdraw money demo...");
var (loadAccount, saveAccount) = InMemoryAccount.Create(); var (loadAccount, saveAccount) = InMemoryAccountRepository.Create();
var withdrawMoney = AccountApplication.CreateWithdrawMoney(loadAccount, saveAccount); var withdrawMoney = AccountApplication.CreateWithdrawMoney(loadAccount, saveAccount);
var accountId = Guid.NewGuid(); var accountId = Guid.NewGuid();