Exemple #1
0
 public CursoService(ICursoRepository repository, IParticipanteRepository participanteRepository, ILeccionRepository leccionRepository, IMapper mapper)
 {
     this.participanteRepository = participanteRepository;
     this.leccionRepository      = leccionRepository;
     this.repository             = repository;
     this.mapper = mapper;
 }
        public LeccionService(ILeccionRepository leccionRepository, ICursoRepository cursoRepository,
                              IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            this.leccionRepository = leccionRepository;
            this.cursoRepository   = cursoRepository;
            this.mapper            = mapper;
            var     cloudinaryConfiguration = cloudinaryConfig;
            Account account = new Account(
                cloudinaryConfiguration.Value.CloudName,
                cloudinaryConfiguration.Value.ApiKey,
                cloudinaryConfiguration.Value.ApiSecret
                );

            this.cloudinary = new Cloudinary(account);
        }
 public ExamenService(IExamenRepository repository, ILeccionRepository leccionRepository, IMapper mapper)
 {
     this.repository        = repository;
     this.mapper            = mapper;
     this.leccionRepository = leccionRepository;
 }