public void ShouldMapAccountTypeForBalanceAdjustmentTransaction() { TestData = new LedgerTransactionDto { Id = TransactionId, Amount = -123.99M, Narrative = "Foo bar.", Account = StatementModelTestData.ChequeAccount.Name, TransactionType = typeof(BankBalanceAdjustmentTransaction).FullName }; var subject = new Mapper_LedgerTransactionDto_LedgerTransaction(new LedgerTransactionFactory(), new InMemoryAccountTypeRepository()); Result = subject.ToModel(TestData); Assert.AreEqual(StatementModelTestData.ChequeAccount.Name, ((BankBalanceAdjustmentTransaction)Result).BankAccount.Name); }
public void TestInitialise() { var subject = new Mapper_LedgerTransactionDto_LedgerTransaction(new LedgerTransactionFactory(), new InMemoryAccountTypeRepository()); Result = subject.ToModel(TestData); }