示例#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;
 }
 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;
        }
        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;
 }