Exemplo n.º 1
0
 internal static void Transfer(AccountData withdrawee, AccountData depositee, double amount)
 {
     AccountLog.Log(withdrawee, $"attempted to transfer out {amount}");
     AccountLog.Log(depositee, $"preparing to accept in {amount}");
     Deposit(depositee, Withdraw(withdrawee, amount));
 }
Exemplo n.º 2
0
 public static void Delete(AccountData data)
 {
     File.Delete(MakeUrl(data));
 }
Exemplo n.º 3
0
 public static void Deposit(AccountData account, double amount)
 {
     account.Amount += amount;
     AccountLog.Log(account, $"deposited {amount}");
 }
Exemplo n.º 4
0
 public static string MakeUrl(AccountData data)
 {
     return($"../../userdata/{data.UserName}-{data.Name}.log.txt");
 }