public void Rejectspredatedtxn()
        {
            var sut = CreateSUT(31.March(2018), 899_327.02M);

            sut.ClosingBalanceFor(31.March(2018)).Should().Be(899_327.02M);

            Action act = () => sut.Insert(SoaRowDTO.Deposit
                                              (30.March(2018), "before base balance", "", 123.45M, ""));

            act.Should().Throw <PredatesBaseBalanceException>();
        }
Exemplo n.º 2
0
 public void Deposit(DateTime transactionDate, string subject, string description, decimal amount, string transactionRef)
 => UpsertAndUpdateBalances(SoaRowDTO
                            .Deposit(transactionDate, subject, description, amount, transactionRef));