banking-kata-dotnet
banking-kata-dotnet copied to clipboard
Banking Kata (.NET)
See the classes done with Entity Framework: - Source: https://github.com/valentinacupac/banking-kata-dotnet/blob/main/src/Optivem.Kata.Banking.Infrastructure/BankAccountRepository.cs - Test: https://github.com/valentinacupac/banking-kata-dotnet/blob/main/test/Optivem.Kata.Banking.Infrastructure.Test/BankAccountRepositoryTest.cs Do the same thing for MongoDB, just add MongoDb prefix, e.g. additional files: - MongoDbBankAccountRepository - MongoDbBankAccountRepositoryTest
The purpose is to show how to share code between use cases because WithdrawFundsAndCloseAccount would use the logic in WithdrawFunds but this logic can't be move into the domain objects...