fix(infra): update transaction amount handling to use CanonicalAmount and ensure negative values in transaction tests

This commit is contained in:
Stevan Freeborn
2026-03-11 20:01:23 -05:00
parent e3acb2166d
commit 559908a150
5 changed files with 7 additions and 2 deletions
@@ -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]