public FrmCatalogoArticulo()
 {
     InitializeComponent();
     IApplicationContext ctx = ContextRegistry.GetContext();
     ArticuloService = ctx["articuloService"] as IArticuloService;
     EnlaceDatos();
     InicializarListas();
 }
 public ArticuloControllerIntegrationTest()
 {
     repositorio              = new RepositorioArticulo();
     service                  = new ArticuloService(repositorio);
     controller               = new ArticuloController(service);
     controller.Request       = new HttpRequestMessage();
     controller.Configuration = new HttpConfiguration();
 }
Example #3
0
        public HomeController(IArticuloService articuloService,
                              IArticuloManager articuloManager
                              )
        {
            _articuloService = articuloService;

            _articuloManager = articuloManager;
        }
 public ArticulosController(IArticuloService articuloService, IColorService colorService, IModeloService modeloService, IMarcaService marcaService, ICategoriaService categoriaService, IMapper mapper)
 {
     this._articuloService  = articuloService;
     this._colorService     = colorService;
     this._modeloService    = modeloService;
     this._marcaService     = marcaService;
     this._categoriaService = categoriaService;
     this._mapper           = mapper;
 }
        public ArticuloManager(IArticuloService articuloService
                               , ITipoService tipoService
                               , ITagService tagService)
        {
            _articuloService = articuloService;

            _tipoService = tipoService;

            _tagService = tagService;
        }
 public void Dispose()
 {
     usuarioService      = null;
     sedeService         = null;
     proveedorService    = null;
     areaService         = null;
     unidadMedidaService = null;
     articuloService     = null;
     documentoService    = null;
     empresaService      = null;
     bancoService        = null;
 }
 public ServiceAlmacen()
 {
     this.usuarioService      = new UsuarioService();
     this.sedeService         = new SedeService();
     this.proveedorService    = new ProveedorService();
     this.areaService         = new AreaService();
     this.unidadMedidaService = new UnidadMedidaService();
     this.articuloService     = new ArticuloService();
     this.documentoService    = new DocumentoService();
     this.empresaService      = new EmpresaService();
     this.puestoService       = new PuestoService();
     this.bancoService        = new BancoService();
 }
Example #8
0
 public ArticuloController(IArticuloService service, ITokenManager tokenManager, IAuthenticationApiConsumer authenticationApiConsumer, IArticuloApiConsumer ArticuloApiConsumer, ISpartane_FileApiConsumer Spartane_FileApiConsumer, ISpartan_Business_RuleApiConsumer Spartan_Business_RuleApiConsumer, ISpartan_BR_Process_Event_DetailApiConsumer Spartan_BR_Process_Event_DetailApiConsumer, ISpartan_FormatApiConsumer Spartan_FormatApiConsumer, ISpartan_Format_PermissionsApiConsumer Spartan_Format_PermissionsApiConsumer, IGeneratePDFApiConsumer GeneratePDFApiConsumer, ISpartan_Format_RelatedApiConsumer Spartan_Format_RelatedApiConsumer)
 {
     this.service = service;
     this._IAuthenticationApiConsumer = authenticationApiConsumer;
     this._IArticuloApiConsumer       = ArticuloApiConsumer;
     this._userCredential             = SessionHelper.UserCredential;
     this._tokenManager = tokenManager;
     this._ISpartane_FileApiConsumer                   = Spartane_FileApiConsumer;
     this._ISpartan_Business_RuleApiConsumer           = Spartan_Business_RuleApiConsumer;
     this._ISpartan_BR_Process_Event_DetailApiConsumer = Spartan_BR_Process_Event_DetailApiConsumer;
     this._ISpartan_FormatApiConsumer                  = Spartan_FormatApiConsumer;
     this._ISpartan_Format_PermissionsApiConsumer      = Spartan_Format_PermissionsApiConsumer;
     this._IGeneratePDFApiConsumer           = GeneratePDFApiConsumer;
     this._ISpartan_FormatRelatedApiConsumer = Spartan_Format_RelatedApiConsumer;
 }
Example #9
0
 public ProductoService(IProductoQuerying productoQuerying, IArticuloService articuloService, ICapituloService capituloService,
     ILibroService libroService, IReporteService reporteService, IResenaService resenaService, IObraTraducidaService obraTraducidaService,
     IProyectoService proyectoService, ICursoService cursoService, ITesisDirigidaService tesisDirigidaService, IDictamenService dictamenService,
     IOrganoExternoService organoExternoService, IEventoService eventoService, IParticipacionMedioService participacionMedioService)
 {
     this.productoQuerying = productoQuerying;
     this.articuloService = articuloService;
     this.capituloService = capituloService;
     this.libroService = libroService;
     this.reporteService = reporteService;
     this.resenaService = resenaService;
     this.obraTraducidaService = obraTraducidaService;
     this.proyectoService = proyectoService;
     this.cursoService = cursoService;
     this.tesisDirigidaService = tesisDirigidaService;
     this.dictamenService = dictamenService;
     this.organoExternoService = organoExternoService;
     this.eventoService = eventoService;
     this.participacionMedioService = participacionMedioService;
 }
 public ValuesController(
     IArticuloService articuloService
     )
 {
     this.articuloService = articuloService;
 }
 public VentasController(IMapper mapper, IArticuloService articuloService, IVentaService ventaService)
 {
     this._mapper          = mapper;
     this._articuloService = articuloService;
     this._ventaService    = ventaService;
 }
 public ArticulosController(IArticuloService ArticuloService)
 {
     this.ArticuloService = ArticuloService;
 }
Example #13
0
 public ArticuloController(DataContext contex, IArticuloService articuloService)
 {
     _contex = contex;
     this._articuloService = articuloService;
 }
Example #14
0
 public ArticuloController(ILogger logger, IArticuloService articuloService)
     : base(logger)
 {
     _articuloService = articuloService;
 }
 public ArticuloController(IArticuloService service)
 {
     _service = service;
     SetDependences();
 }