示例#1
0
 public NivelService()
 {
     if (_nivelRepository == null)
     {
         _nivelRepository = new NivelRepository();
     }
 }
示例#2
0
 public PerguntaService(IPerguntaRepository repo, IQuizzService quizzService
                        , IQuizzRepository quizzRepository, INivelRepository nivel)
 {
     this.perguntaRepository = repo;
     _quizzRepository        = quizzRepository;
     _quizzService           = quizzService;
     nivelRepository         = nivel;
 }
 public OportunidadeService(IOportunidadeRepository oportunidadeRepository,
                            IOportunidadeNivelRepository oportunidadeNivelRepository,
                            INivelRepository nivelRepository, IIBGEService iBGEService)
 {
     _oportunidadeNivelRepository = oportunidadeNivelRepository;
     _oportunidadeRepository      = oportunidadeRepository;
     _nivelRepository             = nivelRepository;
     _iBGEService = iBGEService;
 }
示例#4
0
        public async static Task Main(string[] args)
        {
            Console.WriteLine("Comenzó Generador de Data!");
            connection             = new SqlConnection(connectionString);
            nivelRepository        = new NivelRepository(connection);
            lineaCarreraRepository = new LineaCarreraRepository(connection);
            var conocimientoRepository = new ConocimientoRepository(connection);

            participanteRepository = new ParticipanteRepository(connection);
            ratingCursoRepository  = new RatingCursoRepository(connection);
            var authenticationRepository = new AuthenticationRepository(connection);

            cursoRepository = new CursoRepository(connection);

            var myProfile           = new AutoMapperProfiles();
            var configuration       = new MapperConfiguration(cfg => cfg.AddProfile(myProfile));
            var mapper              = new Mapper(configuration);
            var participanteService = new ParticipanteService(participanteRepository, conocimientoRepository, mapper, null);

            _authService = new AuthenticationService(authenticationRepository, participanteService, mapper);

            try
            {
                _faker = new ParticipanteFaker();

                await GenerarEscaladores();
                await GenerarSherpas();
                await GenerarAdmin();
                await GenerarCursoImagenes();

                for (int i = 0; i < 3; i++)
                {
                    await GenerarRatingCursosAleatorios();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Excepción: " + ex.Message);
            }
            Console.WriteLine("Finalizó Generador Data!");
            Console.ReadLine();
        }
示例#5
0
 public EstandarService(
     IEstandarRepository estandarRepository,
     IEventLogService eventLogService,
     IGrupoEstandarRepository grupoEstandarRepository,
     ICalificacionRepository calificacionRepository,
     ICategoriaRepository categoriaRepository,
     INivelRepository nivelRepository,
     IOpcionRepository opcionRepository,
     ISistemaRepository sistemaRepository,
     IClasificacionRepository clasificacionRepository)
 {
     _estandarRepository      = estandarRepository;
     _eventLogService         = eventLogService;
     _grupoEstandarRepository = grupoEstandarRepository;
     _calificacionRepository  = calificacionRepository;
     _categoriaRepository     = categoriaRepository;
     _nivelRepository         = nivelRepository;
     _opcionRepository        = opcionRepository;
     _sistemaRepository       = sistemaRepository;
     _clasificacionRepository = clasificacionRepository;
 }
 public NivelController(INivelRepository nivelRepository)
 {
     _nivelRepository = nivelRepository;
 }
示例#7
0
 public NivelService(INivelRepository nivel_repository)
 {
     this.nivel_repository = nivel_repository;
 }
 public NivelQueryHandlerTest()
 {
     _context         = ContextFactory.Create();
     _nivelRepository = new NivelRepository(_context);
 }
示例#9
0
 public NivelService(INivelRepository repository, IMapper mapper)
 {
     this.mapper     = mapper;
     this.repository = repository;
 }
示例#10
0
 public NivelService(INivelRepository repo)
 {
     this._repo = repo;
 }
示例#11
0
 public OportunidadeService(IOportunidadeRepository oportunidadeRepository, INivelRepository nivelRepository, IIBGERepository iBGERepository)
 {
     _oportunidadeRepository = oportunidadeRepository;
     _nivelRepository        = nivelRepository;
     _iBGERepository         = iBGERepository;
 }
示例#12
0
 public NivelQueryHandler(INivelRepository nivelRepository)
 {
     _nivelRepository = nivelRepository;
 }