Domain.CheckingAccount.GetAmount C# (CSharp) Method

GetAmount() public method

public GetAmount ( ) : double
return double
        public double GetAmount()
        {
            return amount;
        }

Usage Example

 public void WithdrawAllowsMoreThanCurrentAmountForCheckingAccount()
 {
     IAccount account = new CheckingAccount(36241604394L, 100.0, 70.0, new Customer());
     service.Withdraw(account, 150.0);
     Assert.AreEqual(-50.0, account.GetAmount());
 }