示例#1
0
        public async Task <ActionResult <IEnumerable <CurrencyModel> > > Get([FromRoute] string id)
        {
            var request = new ObtenerMonedaRequest(id);
            var result  = await mediator.Send(request);

            return(Ok(result));
        }
        public void Handle(string id)
        {
            request = new ObtenerMonedaRequest(id);

            var result = Handler.Handle(request, CancellationToken).Result;

            Assert.IsNotNull(result);
        }