示例#1
0
        public void Contribution_Amount_CheckBalance(decimal amount, decimal expected)
        {
            // arrange
            var vm = new BankViewModel()
            {
                Account = account, AmountToTransfer = amount
            };

            // act
            bank.Contribution(vm);
            var actual = vm.Account.Balance;

            // assert
            Assert.Equal(expected, actual);
        }