public NivelService() { if (_nivelRepository == null) { _nivelRepository = new NivelRepository(); } }
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; }
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(); }
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; }
public NivelService(INivelRepository nivel_repository) { this.nivel_repository = nivel_repository; }
public NivelQueryHandlerTest() { _context = ContextFactory.Create(); _nivelRepository = new NivelRepository(_context); }
public NivelService(INivelRepository repository, IMapper mapper) { this.mapper = mapper; this.repository = repository; }
public NivelService(INivelRepository repo) { this._repo = repo; }
public OportunidadeService(IOportunidadeRepository oportunidadeRepository, INivelRepository nivelRepository, IIBGERepository iBGERepository) { _oportunidadeRepository = oportunidadeRepository; _nivelRepository = nivelRepository; _iBGERepository = iBGERepository; }
public NivelQueryHandler(INivelRepository nivelRepository) { _nivelRepository = nivelRepository; }