コード例 #1
0
        public async Task ApplicationService_GetSpentValue_IsValid()
        {
            var spentValue = await _applicationService.GetSpentValue();

            double expectedSpentValue = 27;

            Assert.AreEqual(spentValue, expectedSpentValue);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: mtsdnz/backend-test
        /// <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}");
        }