Esempio n. 1
0
        public ProductosController(
            UserManager <IdentityUser> userManager,
            SignInManager <IdentityUser> signInManager,
            MessagesService messagesService,
            IProductosService productosService,
            IVisitasService VisitasService,
            ICategoriasService categoriasService,
            IProductoCategoriasService productoCategoriasService,
            IVendedoresService vendedoresService,
            IUsuariosService usuariosService,
            IProductosVendedoresService productosVendedoresService,
            IReviewsService reviewsService,
            IHelperService helperService,
            IOpcionesProductosService opcionesProductosService,
            IImagenesProductosService imagenesProductosService,
            IMemoryCache memoryCache)

        {
            _userManager                = userManager;
            _signInManager              = signInManager;
            _messagesService            = messagesService;
            _productosService           = productosService;
            _VisitasService             = VisitasService;
            _categoriasService          = categoriasService;
            _productoCategoriasService  = productoCategoriasService;
            _vendedoresService          = vendedoresService;
            _usuariosService            = usuariosService;
            _productosVendedoresService = productosVendedoresService;
            _reviewsService             = reviewsService;
            _helperService              = helperService;
            _opcionesProductosService   = opcionesProductosService;
            _imagenesProductosService   = imagenesProductosService;
            _memoryCache                = memoryCache;
        }
Esempio n. 2
0
        public CategoriasServiceUnitTest()
        {
            this.componentContainer = new ComponentContainer();
            this.componentContainer.Register <ICategoriasService, CategoriaService>();

            this.iCategoriaService = componentContainer.Resolve <ICategoriasService>();
        }
Esempio n. 3
0
 public GustoUsuariosController(UserManager <IdentityUser> userManager,
                                SignInManager <IdentityUser> signInManager,
                                IGustosUsuariosService gustosUsuariosService,
                                ICategoriasService categoriasService,
                                IUsuariosService usuariosService)
 {
     _userManager           = userManager;
     _signInManager         = signInManager;
     _gustosUsuariosService = gustosUsuariosService;
     _categoriasService     = categoriasService;
     _usuariosService       = usuariosService;
 }
Esempio n. 4
0
 public APICOPController(
     ApplicationDbContext context,
     ICategoriasService categoriasService,
     IProductosService productosService,
     IProductoCategoriasService productoCategoriasService,
     IMemoryCache memoryCache)
 {
     _context                   = context;
     _categoriasService         = categoriasService;
     _productosService          = productosService;
     _productoCategoriasService = productoCategoriasService;
     _memoryCache               = memoryCache;
 }
Esempio n. 5
0
        public ModuloServiceUnitTest()
        {
            this.componentContainer = new ComponentContainer();

            this.componentContainer.Register <IModuloService, ModuloService>();
            this.componentContainer.Register <IPlantillaService, PlantillaService>();
            this.componentContainer.Register <ICategoriasService, CategoriaService>();
            this.componentContainer.Register <ISeguridadService, SeguridadService>();

            this.iModuloService    = componentContainer.Resolve <IModuloService>();
            this.iPlantillaService = componentContainer.Resolve <IPlantillaService>();
            this.iCategoriaService = componentContainer.Resolve <ICategoriasService>();
            this.iSeguridadService = componentContainer.Resolve <ISeguridadService>();
        }
Esempio n. 6
0
 public HelperService(ApplicationDbContext context,
                      IConfiguration configuration,
                      IMemoryCache memoryCache,
                      IProductosService productosService,
                      ICategoriasService categoriasService,
                      IProductoCategoriasService productoCategoriasService)
 {
     _context                   = context;
     _configuration             = configuration;
     _memoryCache               = memoryCache;
     _productosService          = productosService;
     _categoriasService         = categoriasService;
     _productoCategoriasService = productoCategoriasService;
 }
        public AgrupadorServiceUnitTest()
        {
            this.componentContainer = new ComponentContainer();
            this.componentContainer.Register <IAgrupadorService, AgrupadorService>();

            this.componentContainer.Register <IModuloService, ModuloService>();
            this.componentContainer.Register <IPlantillaService, PlantillaService>();
            this.componentContainer.Register <ICategoriasService, CategoriaService>();

            this.iAgrupadorService = componentContainer.Resolve <IAgrupadorService>();
            this.iModuloService    = componentContainer.Resolve <IModuloService>();
            this.iPlantillaService = componentContainer.Resolve <IPlantillaService>();
            this.iCategoriaService = componentContainer.Resolve <ICategoriasService>();
        }
Esempio n. 8
0
 public ProductosController(IProductosService productosService,
                            IVendedoresService vendedoresService,
                            IOpcionesProductosService opcionesProductosService,
                            IReviewsService reviewsService,
                            ICategoriasService categoriasService,
                            IImagenesProductosService imagenesProductosService,
                            IMapper mapper)
 {
     _productosService         = productosService;
     _vendedoresService        = vendedoresService;
     _opcionesProductosService = opcionesProductosService;
     _reviewsService           = reviewsService;
     _categoriaService         = categoriasService;
     _imagenesProductosService = imagenesProductosService;
     _mapper = mapper;
 }
Esempio n. 9
0
        public CambiarOrdenUnitTest()
        {
            this.componentContainer = new ComponentContainer();
            this.componentContainer.Register <IListaLinealOrdenService, ListaLinealOrdenService>();
            this.componentContainer.Register <IListaLinealService, ListaLinealService>();
            this.componentContainer.Register <ICategoriasService, CategoriaService>();
            this.componentContainer.Register <IPlantillaService, PlantillaService>();
            this.componentContainer.Register <IModuloService, ModuloService>();
            this.componentContainer.Register <IAgrupadorService, AgrupadorService>();

            this.iListaLinealOrdenService = componentContainer.Resolve <IListaLinealOrdenService>();
            this.iListaLinealService      = componentContainer.Resolve <IListaLinealService>();
            this.iCategoriaService        = componentContainer.Resolve <ICategoriasService>();
            this.iPlantillaService        = componentContainer.Resolve <IPlantillaService>();
            this.iModuloService           = componentContainer.Resolve <IModuloService>();
            this.iAgrupadorService        = componentContainer.Resolve <IAgrupadorService>();
        }
Esempio n. 10
0
 public CategoriasController(ICategoriasService categoriasService)
 {
     _categoriasService = categoriasService;
 }
 public ProductoCategoriasController(IProductoCategoriasService productoCategoriasService, ICategoriasService categoriasService, IProductosService productosService)
 {
     _productoCategoriasService = productoCategoriasService;
     _categoriasService         = categoriasService;
     _productosService          = productosService;
 }