Beispiel #1
0
        public void test_pedido_proxy_is_injected()
        {
            using (var lifetime = container.BeginLifetimeScope())
            {
                Client.Contracts.IPedidoService proxy
                    = container.Resolve <Client.Contracts.IPedidoService>();

                Assert.IsTrue(proxy is PedidoClient);
            }
        }
Beispiel #2
0
        protected override void DisposeCore()
        {
            base.DisposeCore();
            try
            {
                (_pedidoProxy as Client.Proxies.PedidoClient).CleanUp();

                (_productoProxy as Client.Proxies.ProductoClient).CleanUp();
            }
            catch
            {
                _pedidoProxy   = null;
                _productoProxy = null;
            }
        }
Beispiel #3
0
 public PedidoController(Client.Contracts.IPedidoService pedidoServiceProxy)
 {
     this._pedidoProxy = pedidoServiceProxy;
 }
Beispiel #4
0
 public ClientInjectionClass(Client.Contracts.IProductoService productoServiceProxy,
                             Client.Contracts.IPedidoService pedidoServiceProxy)
 {
     this._pedidoProxy   = pedidoServiceProxy;
     this._productoProxy = productoServiceProxy;
 }