Example #1
0
        public async void Deve_retornar_valor_corretamente()
        {
            var result = await _handler.Handle(_command, new CancellationToken());

            Assert.True(result == Convert.ToDecimal(105.10));
        }
        private async Task <double> ExecuteCommand(CalculaJurosCommand command)
        {
            var handler = new CalculaJurosCommandHandler();

            return(await handler.Handle(command, new CancellationToken()));
        }