예제 #1
0
        public void DepositShouldSaveOperationName()
        {
            decimal depositAmount = 10;
            string  operationName = "First Operation";

            _banker.Deposit(_myAccount, depositAmount, operationName);

            List <Operation> operations = _banker.GetOperations(_myAccount);

            Assert.AreEqual(1, operations.Count);
            Assert.AreEqual(operationName, operations.FirstOrDefault().Name);
        }