示例#1
0
        public void ShouldBeAbleToAcceptPendingInTransfer()
        {
            var id     = Guid.NewGuid();
            var result = Account.Create(VALIDNAME, 50);

            result = Account.StartTransferFrom(id, "AC002", 10, result.SucceededWith());
            result = Account.AcceptTransferFrom(id, result.SucceededWith());

            var account = result.SucceededWith();

            Assert.AreEqual(60, account.Balance);
            Assert.AreEqual(0, account.PendingIn.Count);
        }