AnujBank.TargetAccount.GetAccountNumber C# (CSharp) Method

GetAccountNumber() public method

public GetAccountNumber ( ) : int
return int
        public int GetAccountNumber()
        {
            return account.GetAccountNumber();
        }

Usage Example

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