public PersonaController(IConfiguration configuration, IWebHostEnvironment environment)
 {
     this.configuration          = configuration;
     this.environment            = environment;
     this.repositorio            = new RepositorioPersona(configuration);
     this.repositorioTipoPersona = new RepositorioTipoPersona(configuration);
     this.utils = new Utils(configuration, environment);
 }
        public void MyTestInitialize()
        {
            _repositorio = new PersonaRepositorio();
            _nombreAModificar = "personaTestModificado";
            _model = new Persona()
            {
                Nombre          = "nombreTest",
                Apellido        = "apellidoTest",
                Email           = "*****@*****.**",
                Estatus         = "Activo",
                FechaNacimiento = System.Convert.ToDateTime("01/01/2010"),
                Nickname        = "nicknameTest",
                Privacidad      = "Publico",
                Twitter         =  "nicknameTest"

            };
        }
Example #3
0
 public HomeController(IRepositorioPersona repositorioPersona, ILogger logger)
     : base(repositorioPersona, logger)
 {
 }
 public BaseController(IRepositorioPersona repositorioPersona, ILogger logger)
 {
     _repositorioPersona = repositorioPersona;
     _logger             = logger;
 }
 public void MyTestCleanup()
 {
     _repositorio = null;
     _model = null;
 }
Example #6
0
 public ReconocimientoController(IRepositorioPersona repositorioPersona, ILogger logger)
     : base(repositorioPersona, logger)
 {
 }
 //public HomeController(ILogger<HomeController> logger)
 //{
 //    _logger = logger;
 //}
 public HomeController(IConfiguration configuration)
 {
     this.configuration = configuration;
     this.repositorio   = new RepositorioPersona(configuration);
 }
Example #8
0
 public PersonaLN(IRepositorioPersona repositorio)
 {
     DominioPersona = repositorio;
 }//Fin del constructor.