diff --git a/csharp-fp1/Infrastructure/InMemoryAccount.cs b/csharp-fp1/Infrastructure/InMemoryAccountRepository.cs similarity index 96% rename from csharp-fp1/Infrastructure/InMemoryAccount.cs rename to csharp-fp1/Infrastructure/InMemoryAccountRepository.cs index d5e56ef..432d253 100644 --- a/csharp-fp1/Infrastructure/InMemoryAccount.cs +++ b/csharp-fp1/Infrastructure/InMemoryAccountRepository.cs @@ -12,7 +12,7 @@ public delegate void SaveAccount(Account accunt); // we can create a named container // public sealed record AccountPersistence(LoadAccount Load, SaveAccount Save); -public static class InMemoryAccount +public static class InMemoryAccountRepository { public static (LoadAccount, SaveAccount) Create() { diff --git a/csharp-fp1/Program.cs b/csharp-fp1/Program.cs index 33f9227..fdcd946 100644 --- a/csharp-fp1/Program.cs +++ b/csharp-fp1/Program.cs @@ -4,7 +4,7 @@ using CsharpFp1.Infrastructure; 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 accountId = Guid.NewGuid(); diff --git a/csharp-fp2.Tests/WithdrawMoneyTests.cs b/csharp-fp2.Tests/WithdrawMoneyTests.cs index ae8f358..65bd14e 100644 --- a/csharp-fp2.Tests/WithdrawMoneyTests.cs +++ b/csharp-fp2.Tests/WithdrawMoneyTests.cs @@ -14,7 +14,7 @@ public class WithdrawMoneyTests SaveAccount saveAccount ) BuildHandler() { - var (loadAccount, saveAccount) = InMemoryAccount.Create(); + var (loadAccount, saveAccount) = InMemoryAccountRepository.Create(); var withdraw = AccountApplication.CreateWithdrawMoney(loadAccount, saveAccount); return (withdraw, loadAccount, saveAccount); } diff --git a/csharp-fp2/Infrastructure/InMemoryAccount.cs b/csharp-fp2/Infrastructure/InMemoryAccountRepository.cs similarity index 96% rename from csharp-fp2/Infrastructure/InMemoryAccount.cs rename to csharp-fp2/Infrastructure/InMemoryAccountRepository.cs index fbbc270..16dcd6c 100644 --- a/csharp-fp2/Infrastructure/InMemoryAccount.cs +++ b/csharp-fp2/Infrastructure/InMemoryAccountRepository.cs @@ -12,7 +12,7 @@ public delegate void SaveAccount(Account accunt); // we can create a named container // public sealed record AccountPersistence(LoadAccount Load, SaveAccount Save); -public static class InMemoryAccount +public static class InMemoryAccountRepository { public static (LoadAccount, SaveAccount) Create() { diff --git a/csharp-fp2/Program.cs b/csharp-fp2/Program.cs index 41dc490..73c4abf 100644 --- a/csharp-fp2/Program.cs +++ b/csharp-fp2/Program.cs @@ -4,7 +4,7 @@ using CsharpFp2.Infrastructure; 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 accountId = Guid.NewGuid();