fix(infra): update transaction amount handling to use CanonicalAmount and ensure negative values in transaction tests
This commit is contained in:
@@ -30,6 +30,9 @@ public class PlaidAddedTransactionHandlerTests : IntegrationTest
|
||||
|
||||
result.Should().Be(1);
|
||||
account.Transactions.Should().HaveCount(2);
|
||||
account.Transactions
|
||||
.Single(t => t.Metadata is PlaidTransactionMetadata m && m.PlaidId == transaction.TransactionId)
|
||||
.Amount.Should().Be(-transaction.Amount);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user