public void Execut() { Executor executor = new Executor("make", new CarData()); executor.Init(new UnitOfWorkMock()); invoker some = new invoker(executor); some.run(); }
/// <summary> /// Autor: Enderson Namias /// Fecha: 11-11-2019 /// Descripción: Metodo que permite consultar la cotizacion de los Reales /// </summary> /// <param name="academic">Parametros filtros para la busqueda de informacion</param> /// <returns>Clase con la información encontrada</returns> public HashSet <format> SearchReal() { var Request = new HttpRequestWrapper(HttpContext.Current.Request); var headers = HeaderExtensions.CopyHeadersFrom(Request); _invoke = new commons.invoker(headers); var invokeSelect = (ResultCambioModel)_invoke.get("/v1/quotes/BRL/ARS/json", typeof(ResultCambioModel)); HashSet <format> data = new HashSet <format>(); data.Add(new format { precio = Convert.ToDecimal(invokeSelect.result.value), moneda = "Dolar" }); return(data); }
? await VerifyUser.InvokerIsHigher(invoker, target) ? PreconditionResult.FromSuccess()
return(CreateCallHandler( invoker, CreateServiceMethod("TestMethodName", HelloRequest.Parser, HelloReply.Parser),