Fix some naming
This commit is contained in:
+10
-10
@@ -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
|
||||
|
||||
+2
-2
@@ -57,8 +57,8 @@ public class ReverseJournalHandlerTests
|
||||
)
|
||||
{
|
||||
var command = new TransferFundsCommand(1, 2, transferAmount);
|
||||
var sourceAccount = new Account(1, sourceStartingBalance, AccountType.Liability);
|
||||
var destAccount = new Account(2, destStartingBalance, AccountType.Liability);
|
||||
var sourceAccount = new Account(1, sourceStartingBalance, AccountType.Spend);
|
||||
var destAccount = new Account(2, destStartingBalance, AccountType.Spend);
|
||||
var transferContext = new TransferContext(sourceAccount, destAccount, timeProvider.GetUtcNow());
|
||||
|
||||
// Act
|
||||
|
||||
+10
-10
@@ -27,8 +27,8 @@ public class TransferFundsHandlerTests
|
||||
// Arrange
|
||||
var timeProvider = new FakeTimeProvider();
|
||||
var command = new TransferFundsCommand(1, 2, feeAmount);
|
||||
var sourceAccount = new Account(1, startingBalance, AccountType.Liability);
|
||||
var destAccount = new Account(2, 0, AccountType.Liability);
|
||||
var sourceAccount = new Account(1, startingBalance, AccountType.Spend);
|
||||
var destAccount = new Account(2, 0, AccountType.Spend);
|
||||
var transferContext = new TransferContext(sourceAccount, destAccount, timeProvider.GetUtcNow());
|
||||
|
||||
// Act
|
||||
@@ -51,8 +51,8 @@ public class TransferFundsHandlerTests
|
||||
// Arrange
|
||||
var timeProvider = new FakeTimeProvider();
|
||||
var command = new TransferFundsCommand(1, 2, feeAmount);
|
||||
var sourceAccount = new Account(1, startingBalance, AccountType.Liability);
|
||||
var destAccount = new Account(2, 0, AccountType.Liability);
|
||||
var sourceAccount = new Account(1, startingBalance, AccountType.Spend);
|
||||
var destAccount = new Account(2, 0, AccountType.Spend);
|
||||
var transferContext = new TransferContext(sourceAccount, destAccount, timeProvider.GetUtcNow());
|
||||
|
||||
// Act
|
||||
@@ -81,8 +81,8 @@ public class TransferFundsHandlerTests
|
||||
// Arrange
|
||||
var timeProvider = new FakeTimeProvider();
|
||||
var command = new TransferFundsCommand(1, 2, feeAmount);
|
||||
var sourceAccount = new Account(1, startingBalance, AccountType.Credit);
|
||||
var destAccount = new Account(2, 0, AccountType.Credit);
|
||||
var sourceAccount = new Account(1, startingBalance, AccountType.Borrow);
|
||||
var destAccount = new Account(2, 0, AccountType.Borrow);
|
||||
var transferContext = new TransferContext(sourceAccount, destAccount, timeProvider.GetUtcNow());
|
||||
|
||||
// Act
|
||||
@@ -109,8 +109,8 @@ public class TransferFundsHandlerTests
|
||||
// Arrange
|
||||
var timeProvider = new FakeTimeProvider();
|
||||
var command = new TransferFundsCommand(1, 2, feeAmount);
|
||||
var sourceAccount = new Account(1, startingBalance, AccountType.Credit);
|
||||
var destAccount = new Account(2, 0, AccountType.Credit);
|
||||
var sourceAccount = new Account(1, startingBalance, AccountType.Borrow);
|
||||
var destAccount = new Account(2, 0, AccountType.Borrow);
|
||||
var transferContext = new TransferContext(sourceAccount, destAccount, timeProvider.GetUtcNow());
|
||||
|
||||
// Act
|
||||
@@ -137,8 +137,8 @@ public class TransferFundsHandlerTests
|
||||
// Arrange
|
||||
var timeProvider = new FakeTimeProvider();
|
||||
var command = new TransferFundsCommand(1, 2, feeAmount);
|
||||
var sourceAccount = new Account(1, startingBalance, AccountType.Credit);
|
||||
var destAccount = new Account(2, 0, AccountType.Credit);
|
||||
var sourceAccount = new Account(1, startingBalance, AccountType.Borrow);
|
||||
var destAccount = new Account(2, 0, AccountType.Borrow);
|
||||
var transferContext = new TransferContext(sourceAccount, destAccount, timeProvider.GetUtcNow());
|
||||
|
||||
// Act
|
||||
|
||||
Reference in New Issue
Block a user