Ejemplo n.º 1
0
        private void SeedProgramas()
        {
            IEstudiantesServices estudiantesServices = new EstudiantesServices(this);
            IComputadoraServices computadoraServices = new ComputadoraService(this, estudiantesServices);
            IProgramaServices    programaServices    = new ProgramaService(this, computadoraServices);

            programaServices.AgregarPrograma(new Programa()
            {
                Nombre  = "AutoCad",
                Carrera = Carrera.CIVIL
            });
            programaServices.AgregarPrograma(new Programa()
            {
                Nombre  = "VisualStudio",
                Carrera = Carrera.SISTEMAS
            });
            programaServices.AgregarPrograma(new Programa()
            {
                Nombre  = "HeidiSql",
                Carrera = Carrera.SISTEMAS
            });
            programaServices.AgregarPrograma(new Programa()
            {
                Nombre  = "AutoCad",
                Carrera = Carrera.CIVIL
            });
            programaServices.AgregarPrograma(new Programa()
            {
                Nombre  = "Calculadora",
                Carrera = Carrera.COMERCIAL
            });
            programaServices.AgregarPrograma(new Programa()
            {
                Nombre  = "Excel",
                Carrera = Carrera.COMERCIAL
            });
            computadoraServices.AgregarComputadora(new Computadora()
            {
                Code = "INGE8"
            });
            computadoraServices.AgregarComputadora(new Computadora()
            {
                Code = "INGE9"
            });
        }