Пример #1
0
 public SpeakerService(ISpeakerRepository speakerRepository, ITalkRepository talkRepository, IEmailService emailService, string rootUrl)
 {
     _speakerRepository = speakerRepository;
     _talkRepository    = talkRepository;
     _emailService      = emailService;
     _rootUrl           = rootUrl;
 }
 public TalksController(ICampRepository repository, IMapper mapper, LinkGenerator linkGenerator, IGenericRepository generic, ITalkRepository talk)
 {
     _repository    = repository;
     _mapper        = mapper;
     _linkGenerator = linkGenerator;
     _generic       = generic;
     _talk          = talk;
 }
 public SpeakerTalksController(ITalkRepository talkRepository,
                               ISpeakerRepository speakerRepository, IMapper mapper
                               )
 {
     _talkRepository    = talkRepository;
     _speakerRepository = speakerRepository;
     _mapper            = mapper;
 }
Пример #4
0
 public TalksController(ITalkRepository talkRepository,
                        ISpeakerRepository speakerRepository, IMapper mapper
                        )
 {
     this.talkRepository    = talkRepository;
     this.speakerRepository = speakerRepository;
     this.mapper            = mapper;
 }
Пример #5
0
        public TalkController(
            ITalkRepository talks, IPersonRepository persons, IOrganizationRepository organizations, IUserRepository users, ICategoryRepository cats,
            IYouTubeLinker ytLinker, IICalExporter iCalExporter)
        {
            this._talks         = talks;
            this._persons       = persons;
            this._organizations = organizations;
            this._users         = users;
            this._cats          = cats;

            this._ytLinker     = ytLinker;
            this._iCalExporter = iCalExporter;
        }
Пример #6
0
        public HomeController(IPersonRepository persons, ITalkRepository talks, IOrganizationRepository orgs, ICategoryRepository cats)
        {
            if (persons == null)
            {
                throw new ArgumentNullException();
            }
            if (talks == null)
            {
                throw new ArgumentNullException();
            }

            this._persons = persons;
            this._talks   = talks;
            this._orgs    = orgs;
            this._cats    = cats;
        }
Пример #7
0
 public TalkService(ITalkRepository repo)
 {
     this.repo = repo;
 }
Пример #8
0
 public TalkService(ITalkRepository talkRepository, ISpeakerRepository speakerRepository, ICityRepository cityRepository)
 {
     _talkRepository    = talkRepository;
     _speakerRepository = speakerRepository;
     _cityRepository    = cityRepository;
 }
Пример #9
0
 public TalksController(ITalkRepository repository, ILoggerFactory loggerFactory)
 {
     this._repository = repository ?? throw new ArgumentNullException(nameof(TalksController));
     this._logger     = loggerFactory.CreateLogger(nameof(TalksController));
 }
Пример #10
0
 public TalkService(ITalkRepository repository)
 {
     this._repository = repository;
 }