public async Task ApplicationService_GetTotalTransactionsAmount_IsValid() { var receivedValue = await _applicationService.GetTotalTransactionsAmount(); double expectedReceivedValue = 57; Assert.AreEqual(receivedValue, expectedReceivedValue); }
/// <summary> /// Informa quanto de dinheiro o cliente já recebeu. /// </summary> public static async Task PrintTotalTransactionsAmount(this TransactionApplicationService clientService) { var transactionsAmount = await clientService.GetTotalTransactionsAmount(); Console.WriteLine($"Total Movimentado: R$ {transactionsAmount:N}"); }