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>(); }
public PlantillaController() { var container = new UnityContainer(); container.RegisterInstance <IPlantillaUtility>(new PlantillaUtility()); container.RegisterType <IPlantillaRepository, PlantillaRepository>(); container.RegisterType <IPlantillaService, PlantillaService>(); plantillaService = container.Resolve <IPlantillaService>(); }
public void TestSetUp() { var container = new UnityContainer(); container.RegisterInstance <IPlantillaUtility>(new PlantillaUtility()); container.RegisterType <IPlantillaRepository, PlantillaRepository>(); container.RegisterType <IPlantillaService, PlantillaService>(); service = container.Resolve <IPlantillaService>(); }
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>(); }
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>(); }
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>(); }