Domain.SavingsAccount.GetAmount C# (CSharp) Method

GetAmount() public method

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

Usage Example

    public void WithdrawRemovesMoney()
    {
        IAccount account = new SavingsAccount(36241604394L, 100.0, new Customer());
        service.Withdraw(account, 50.0);

        Assert.AreEqual(50.0, account.GetAmount());
    }
All Usage Examples Of Domain.SavingsAccount::GetAmount