Esempio n. 1
0
        public async Task ApplicationService_GetTotalTransactionsAmount_IsValid()
        {
            var receivedValue = await _applicationService.GetTotalTransactionsAmount();

            double expectedReceivedValue = 57;

            Assert.AreEqual(receivedValue, expectedReceivedValue);
        }
Esempio n. 2
0
        /// <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}");
        }