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)); }
public static void Delete(AccountData data) { File.Delete(MakeUrl(data)); }
public static void Deposit(AccountData account, double amount) { account.Amount += amount; AccountLog.Log(account, $"deposited {amount}"); }
public static string MakeUrl(AccountData data) { return($"../../userdata/{data.UserName}-{data.Name}.log.txt"); }