Esempio n. 1
0
 public string UserNameResponses(int id, Transfers transfers)
 {
     if (transfers.account_from == id)
     {
         return($"{transfers.transfer_id} \t {(FromTo)transfers.transfer_type_id}: {TransferService.GetUserById(transfers.account_to).Username} \t {transfers.Amount:c}");
     }
     else
     {
         return($"{transfers.transfer_id} \t {(FromTo)transfers.transfer_type_id}: {TransferService.GetUserById(transfers.account_from).Username} \t {transfers.Amount:c}");
     }
 }
Esempio n. 2
0
 public void LoginAllServices(AccountService accountService, ProfileService profileService, BalanceTransferService balanceTransferService, TransferService transferService)
 {
     accountService.Login(this.client.Authenticator);
     profileService.Login(this.client.Authenticator);
     balanceTransferService.Login(this.client.Authenticator);
     transferService.Login(this.client.Authenticator);
 }