AnujBank.TargetAccount.GetAmount C# (CSharp) Method

GetAmount() public method

public GetAmount ( ) : double
return double
        public double GetAmount()
        {
            return account.Balance;
        }

Usage Example

 public void ShouldBeAbleToUpdateTheBalance()
 {
     var account = new Account(new AccountId(12345678), new ClientId("ABC123")) { Balance = 100, LastUpdatedDate = DateTime.Now };
     var targetAccount = new TargetAccount(account, 2);
     targetAccount.UpdateBalance(100);
     Assert.AreEqual(102, targetAccount.GetAmount());
 }