AnujBank.TargetAccount.GetAmount C# (CSharp) Méthode

GetAmount() public méthode

public GetAmount ( ) : double
Résultat 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());
 }