Beispiel #1
0
        private static DebitAccount DebitData()
        {
            Console.WriteLine();
            Console.WriteLine(".....................................");
            Console.WriteLine();
            Console.WriteLine("type account");
            var account = Console.ReadLine();

            Console.WriteLine("type a value");
            var value = Convert.ToDecimal(Console.ReadLine());

            var debitAccount = new DebitAccount()
            {
                AccountNumber = account,
                Value         = value
            };

            return(debitAccount);
        }
Beispiel #2
0
 public static string ToDebitSavingsAccount(this DebitAccount debitAccount)
 {
     // business logic
     return(debitAccount.FormatTransaction());
 }