示例#1
0
        public PlantillasUnitTest()
        {
            this.componentContainer = new ComponentContainer();
            this.componentContainer.Register <IPlantillaService, PlantillaService>();
            this.componentContainer.Register <ICategoriasService, CategoriaService>();

            this.iPlantillaService  = componentContainer.Resolve <IPlantillaService>();
            this.iCategoriasService = componentContainer.Resolve <ICategoriasService>();
        }
示例#2
0
        public PlantillaController()
        {
            var container = new UnityContainer();

            container.RegisterInstance <IPlantillaUtility>(new PlantillaUtility());
            container.RegisterType <IPlantillaRepository, PlantillaRepository>();
            container.RegisterType <IPlantillaService, PlantillaService>();

            plantillaService = container.Resolve <IPlantillaService>();
        }
示例#3
0
        public void TestSetUp()
        {
            var container = new UnityContainer();

            container.RegisterInstance <IPlantillaUtility>(new PlantillaUtility());
            container.RegisterType <IPlantillaRepository, PlantillaRepository>();
            container.RegisterType <IPlantillaService, PlantillaService>();

            service = container.Resolve <IPlantillaService>();
        }
示例#4
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>();
        }
        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>();
        }
示例#6
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>();
        }
示例#7
0
        private void RegistrarContainer()
        {
            var container = new UnityContainer();

            container.RegisterType <IParametroUtility, ParametroUtility>();
            container.RegisterType <IPlantillaUtility, PlantillaUtility>();
            container.RegisterType <ITipoUtility, TipoUtility>();
            container.RegisterType <IParametroRepository, ParametroRepository>();
            container.RegisterType <IPlantillaRepository, PlantillaRepository>();
            container.RegisterType <ITipoRepository, TipoRepository>();
            container.RegisterType <IParametroService, ParametroService>();
            container.RegisterType <IPlantillaService, PlantillaService>();
            container.RegisterType <ITipoService, TipoService>();

            servPar = container.Resolve <IParametroService>();
            servPla = container.Resolve <IPlantillaService>();
            servTip = container.Resolve <ITipoService>();
        }