Fix some naming

This commit is contained in:
2026-07-31 09:35:44 +02:00
parent 2abe392890
commit 5e5fc0a034
11 changed files with 200 additions and 42 deletions
@@ -11,7 +11,7 @@ namespace FinancialApi.Application.UnitTests;
public class ApplyFeeHandlerTests
{
public class LiabilityAccount
public class SpendAccount
{
[Theory]
[InlineData(100.0, 20.0, 80.0)]
@@ -27,8 +27,8 @@ public class ApplyFeeHandlerTests
// Arrange
var timeProvider = new FakeTimeProvider();
var command = new ApplyFeeCommand(1, feeAmount);
var account = new Account(1, startingBalance, AccountType.Liability);
var revenueAccount = new Account(99999, 0, AccountType.Credit);
var account = new Account(1, startingBalance, AccountType.Spend);
var revenueAccount = new Account(99999, 0, AccountType.Revenue);
var feeContext = new FeeContext(account, revenueAccount, timeProvider.GetUtcNow());
// Act
@@ -50,8 +50,8 @@ public class ApplyFeeHandlerTests
// Arrange
var timeProvider = new FakeTimeProvider();
var command = new ApplyFeeCommand(1, feeAmount);
var account = new Account(1, startingBalance, AccountType.Liability);
var revenueAccount = new Account(99999, 0, AccountType.Credit);
var account = new Account(1, startingBalance, AccountType.Spend);
var revenueAccount = new Account(99999, 0, AccountType.Revenue);
var feeContext = new FeeContext(account, revenueAccount, timeProvider.GetUtcNow());
// Act
@@ -64,7 +64,7 @@ public class ApplyFeeHandlerTests
}
}
public class CreditAccount
public class BorrowAccount
{
[Theory]
[InlineData(100.0, 20.0, 80.0)]
@@ -80,8 +80,8 @@ public class ApplyFeeHandlerTests
// Arrange
var timeProvider = new FakeTimeProvider();
var command = new ApplyFeeCommand(1, feeAmount);
var account = new Account(1, startingBalance, AccountType.Credit);
var revenueAccount = new Account(99999, 0, AccountType.Credit);
var account = new Account(1, startingBalance, AccountType.Borrow);
var revenueAccount = new Account(99999, 0, AccountType.Revenue);
var feeContext = new FeeContext(account, revenueAccount, timeProvider.GetUtcNow());
// Act
@@ -107,8 +107,8 @@ public class ApplyFeeHandlerTests
// Arrange
var timeProvider = new FakeTimeProvider();
var command = new ApplyFeeCommand(1, feeAmount);
var account = new Account(1, startingBalance, AccountType.Credit);
var revenueAccount = new Account(99999, 0, AccountType.Credit);
var account = new Account(1, startingBalance, AccountType.Borrow);
var revenueAccount = new Account(99999, 0, AccountType.Revenue);
var feeContext = new FeeContext(account, revenueAccount, timeProvider.GetUtcNow());
// Act