public async Task ApplicationService_GetSpentValue_IsValid() { var spentValue = await _applicationService.GetSpentValue(); double expectedSpentValue = 27; Assert.AreEqual(spentValue, expectedSpentValue); }
/// <summary> /// Informa quanto de dinheiro o cliente gastou. /// </summary> public static async Task PrintSpentValue(this TransactionApplicationService clientService) { var spentMoney = await clientService.GetSpentValue(); Console.WriteLine($"Total Gasto: R$ {spentMoney:N}"); }