fix names
This commit is contained in:
+1
-1
@@ -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()
|
||||||
{
|
{
|
||||||
@@ -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();
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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()
|
||||||
{
|
{
|
||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user