示例#1
0
 public StudioValidator(
     IPostalCodeValidator postalCodeValidator,
     IStudioRepository studioRepository)
 {
     _postalCodeValidator = postalCodeValidator;
     _studioRepository    = studioRepository;
 }
示例#2
0
 public StudioMonitorApiController(IStudioRepository studioRepository, ICodecInformationRepository codecInformationRepository, ICodecManager codecManager,
                                   IRegisteredSipRepository registeredSipRepository)
 {
     _studioRepository           = studioRepository;
     _codecInformationRepository = codecInformationRepository;
     _codecManager            = codecManager;
     _registeredSipRepository = registeredSipRepository;
 }
示例#3
0
 public AnimeService(IMapper mapper, IAnimeRepository animeRepository, IGenreRepository genreRepository, IStudioRepository studioRepository, IStreamingServiceRepository streamingServiceRepository)
 {
     _mapper                     = mapper;
     _animeRepository            = animeRepository;
     _genreRepository            = genreRepository;
     _studioRepository           = studioRepository;
     _streamingServiceRepository = streamingServiceRepository;
 }
示例#4
0
 public StudiosController(IStudioRepository studioRepository,
                          ILoggerService logger,
                          IMapper mapper)
 {
     _studioRepository = studioRepository;
     _logger           = logger;
     _mapper           = mapper;
 }
 public ReservationMiddleware(IReservationRepository reservationRepository,
                              IStudioRepository studioRepository,
                              IClientRepository clientRepository,
                              IError error)
 {
     this.reservationRepository = reservationRepository;
     this.studioRepository      = studioRepository;
     this.clientRepository      = clientRepository;
     this.error = error;
 }
        public Studio Post(StudioDTO value)
        {
            Studio model = new Studio()
            {
                Name       = value.Name,
                ProviderId = value.ProviderId
            };

            return(IStudioRepository.Create(model));
        }
示例#7
0
 public StudioService(
     ILogger <IStudioRepository> logger,
     IStudioRepository studioRepository,
     IApiStudioRequestModelValidator studioModelValidator,
     IBOLStudioMapper bolstudioMapper,
     IDALStudioMapper dalstudioMapper)
     : base(logger,
            studioRepository,
            studioModelValidator,
            bolstudioMapper,
            dalstudioMapper)
 {
 }
示例#8
0
 public SyncMovieDetailsDataJob(
     IStudioRepository studioRepository,
     IMovieRepository movieRepository,
     IMapper mapper,
     IConcurrentActionHandler concurrentActionHandler,
     IScrapperClient scrapperClient)
 {
     _studioRepository        = studioRepository;
     _movieRepository         = movieRepository;
     _mapper                  = mapper;
     _concurrentActionHandler = concurrentActionHandler;
     _scrapperClient          = scrapperClient;
 }
示例#9
0
 /// <summary>
 /// Create a new <see cref="ShowRepository"/>.
 /// </summary>
 /// <param name="database">The database handle to use</param>
 /// <param name="studios">A studio repository</param>
 /// <param name="people">A people repository</param>
 /// <param name="genres">A genres repository</param>
 /// <param name="providers">A provider repository</param>
 public ShowRepository(DatabaseContext database,
                       IStudioRepository studios,
                       IPeopleRepository people,
                       IGenreRepository genres,
                       IProviderRepository providers)
     : base(database)
 {
     _database  = database;
     _studios   = studios;
     _people    = people;
     _genres    = genres;
     _providers = providers;
 }
示例#10
0
 public StudioService(
     IStudioValidator studioUrlValidator,
     IStudioRepository studioRepository,
     IPostalCodeRepository postalCodeRepository,
     IUserRepository userRepository,
     IMapper mapper)
 {
     _studioUrlValidator   = studioUrlValidator;
     _studioRepository     = studioRepository;
     _postalCodeRepository = postalCodeRepository;
     _userRepository       = userRepository;
     _mapper = mapper;
 }
        public Studio Put(int id, StudioDTO value)
        {
            Studio model = IStudioRepository.Get(id);

            if (value.Name != null)
            {
                model.Name = value.Name;
            }
            if (value.ProviderId != 0)
            {
                model.ProviderId = value.ProviderId;
            }
            return(IStudioRepository.Update(model));
        }
示例#12
0
 public AbstractStudioService(
     ILogger logger,
     IStudioRepository studioRepository,
     IApiStudioRequestModelValidator studioModelValidator,
     IBOLStudioMapper bolStudioMapper,
     IDALStudioMapper dalStudioMapper,
     IBOLAdminMapper bolAdminMapper,
     IDALAdminMapper dalAdminMapper,
     IBOLFamilyMapper bolFamilyMapper,
     IDALFamilyMapper dalFamilyMapper,
     IBOLLessonMapper bolLessonMapper,
     IDALLessonMapper dalLessonMapper,
     IBOLLessonStatusMapper bolLessonStatusMapper,
     IDALLessonStatusMapper dalLessonStatusMapper,
     IBOLSpaceMapper bolSpaceMapper,
     IDALSpaceMapper dalSpaceMapper,
     IBOLSpaceFeatureMapper bolSpaceFeatureMapper,
     IDALSpaceFeatureMapper dalSpaceFeatureMapper,
     IBOLStudentMapper bolStudentMapper,
     IDALStudentMapper dalStudentMapper,
     IBOLTeacherMapper bolTeacherMapper,
     IDALTeacherMapper dalTeacherMapper,
     IBOLTeacherSkillMapper bolTeacherSkillMapper,
     IDALTeacherSkillMapper dalTeacherSkillMapper)
     : base()
 {
     this.studioRepository      = studioRepository;
     this.studioModelValidator  = studioModelValidator;
     this.bolStudioMapper       = bolStudioMapper;
     this.dalStudioMapper       = dalStudioMapper;
     this.bolAdminMapper        = bolAdminMapper;
     this.dalAdminMapper        = dalAdminMapper;
     this.bolFamilyMapper       = bolFamilyMapper;
     this.dalFamilyMapper       = dalFamilyMapper;
     this.bolLessonMapper       = bolLessonMapper;
     this.dalLessonMapper       = dalLessonMapper;
     this.bolLessonStatusMapper = bolLessonStatusMapper;
     this.dalLessonStatusMapper = dalLessonStatusMapper;
     this.bolSpaceMapper        = bolSpaceMapper;
     this.dalSpaceMapper        = dalSpaceMapper;
     this.bolSpaceFeatureMapper = bolSpaceFeatureMapper;
     this.dalSpaceFeatureMapper = dalSpaceFeatureMapper;
     this.bolStudentMapper      = bolStudentMapper;
     this.dalStudentMapper      = dalStudentMapper;
     this.bolTeacherMapper      = bolTeacherMapper;
     this.dalTeacherMapper      = dalTeacherMapper;
     this.bolTeacherSkillMapper = bolTeacherSkillMapper;
     this.dalTeacherSkillMapper = dalTeacherSkillMapper;
     this.logger = logger;
 }
示例#13
0
 public AbstractStudioService(
     ILogger logger,
     IStudioRepository studioRepository,
     IApiStudioRequestModelValidator studioModelValidator,
     IBOLStudioMapper bolStudioMapper,
     IDALStudioMapper dalStudioMapper)
     : base()
 {
     this.StudioRepository     = studioRepository;
     this.StudioModelValidator = studioModelValidator;
     this.BolStudioMapper      = bolStudioMapper;
     this.DalStudioMapper      = dalStudioMapper;
     this.logger = logger;
 }
示例#14
0
 /// <summary>
 /// Constructor that sets up the repositories for the controller.
 /// </summary>
 /// <param name="movieRepository">Interface for the movies.</param>
 /// <param name="ratingRepository">Interface for the ratings.</param>
 /// <param name="genreRepository">Interface for the genres.</param>
 /// <param name="actorRepository">Interface for the actors.</param>
 /// <param name="directorRepository">Interface for the directors.</param>
 /// <param name="studioRepository">Interface for the studios.</param>
 /// <param name="mapper">Interface for mapping models to entities and vice versa.</param>
 /// <param name="linkGenerator">Used to generate a url path based on the action being used.</param>
 public MoviesController(IMovieRepository movieRepository,
                         IRatingRepository ratingRepository, IGenreRepository genreRepository,
                         IActorRepository actorRepository, IDirectorRepository directorRepository,
                         IStudioRepository studioRepository, IMapper mapper, LinkGenerator linkGenerator)
 {
     ActorRepository    = actorRepository;
     DirectorRepository = directorRepository;
     StudioRepository   = studioRepository;
     _movieRepository   = movieRepository;
     _ratingRepository  = ratingRepository;
     _genreRepository   = genreRepository;
     _mapper            = mapper;
     _linkGenerator     = linkGenerator;
 }
示例#15
0
 public StudioService(
     ILogger <IStudioRepository> logger,
     IStudioRepository studioRepository,
     IApiStudioRequestModelValidator studioModelValidator,
     IBOLStudioMapper bolstudioMapper,
     IDALStudioMapper dalstudioMapper,
     IBOLAdminMapper bolAdminMapper,
     IDALAdminMapper dalAdminMapper,
     IBOLFamilyMapper bolFamilyMapper,
     IDALFamilyMapper dalFamilyMapper,
     IBOLLessonMapper bolLessonMapper,
     IDALLessonMapper dalLessonMapper,
     IBOLLessonStatusMapper bolLessonStatusMapper,
     IDALLessonStatusMapper dalLessonStatusMapper,
     IBOLSpaceMapper bolSpaceMapper,
     IDALSpaceMapper dalSpaceMapper,
     IBOLSpaceFeatureMapper bolSpaceFeatureMapper,
     IDALSpaceFeatureMapper dalSpaceFeatureMapper,
     IBOLStudentMapper bolStudentMapper,
     IDALStudentMapper dalStudentMapper,
     IBOLTeacherMapper bolTeacherMapper,
     IDALTeacherMapper dalTeacherMapper,
     IBOLTeacherSkillMapper bolTeacherSkillMapper,
     IDALTeacherSkillMapper dalTeacherSkillMapper
     )
     : base(logger,
            studioRepository,
            studioModelValidator,
            bolstudioMapper,
            dalstudioMapper,
            bolAdminMapper,
            dalAdminMapper,
            bolFamilyMapper,
            dalFamilyMapper,
            bolLessonMapper,
            dalLessonMapper,
            bolLessonStatusMapper,
            dalLessonStatusMapper,
            bolSpaceMapper,
            dalSpaceMapper,
            bolSpaceFeatureMapper,
            dalSpaceFeatureMapper,
            bolStudentMapper,
            dalStudentMapper,
            bolTeacherMapper,
            dalTeacherMapper,
            bolTeacherSkillMapper,
            dalTeacherSkillMapper)
 {
 }
示例#16
0
 public MovieScrapper(
     IConcurrentActionHandler concurrentActionHandler,
     ISyncConfiguration syncConfiguration,
     ISyncDetailsRepository syncDetailsRepository,
     IStudioRepository studioRepository,
     IMovieRepository movieRepository,
     IMapper mapper)
 {
     _concurrentActionHandler = concurrentActionHandler;
     _syncConfiguration       = syncConfiguration;
     _syncDetailsRepository   = syncDetailsRepository;
     _studioRepository        = studioRepository;
     _movieRepository         = movieRepository;
     _mapper = mapper;
 }
示例#17
0
        public StudioService(
            ILogger <IStudioService> logger,
            MediatR.IMediator mediator,
            IStudioRepository studioRepository,
            IApiStudioServerRequestModelValidator studioModelValidator,
            IDALStudioMapper dalStudioMapper)
            : base()
        {
            this.StudioRepository     = studioRepository;
            this.StudioModelValidator = studioModelValidator;
            this.DalStudioMapper      = dalStudioMapper;
            this.logger = logger;

            this.mediator = mediator;
        }
 public ChallengeTrackerService(IStudioRepository studioRepository, IStudioChallengeResultAvgRepository studioChallengeResultAvgRepository, IChallengeRepository challengeRepository)
 {
     _studioRepository = studioRepository;
     _studioChallengeResultAvgRepository = studioChallengeResultAvgRepository;
     _challengeRepository = challengeRepository;
 }
示例#19
0
 public StudiosController(IStudioRepository studioRepository)
 {
     _studioRepository = studioRepository;
 }
示例#20
0
 public StudioService(IStudioRepository studioRepository)
 {
     _studioRepository = studioRepository;
 }
 public ActionResult <Studio> Get(int id)
 {
     return(IStudioRepository.Get(id));
 }
 public AbstractApiStudioRequestModelValidator(IStudioRepository studioRepository)
 {
     this.studioRepository = studioRepository;
 }
 public StudioController(IStudioRepository repository)
 {
     IStudioRepository = repository;
 }
 public StudioService(IStudioRepository studioRepo)
 {
     _studioRepo = studioRepo;
 }
 public StudioService(IStudioRepository studioRepository, ILogger <StudioService> logger)
 {
     _studioRepository = studioRepository;
     _logger           = logger;
 }
        public Studio Delete(int id)
        {
            Studio studio = IStudioRepository.Get(id);

            return(IStudioRepository.Delete(studio));
        }
 public ApiStudioRequestModelValidator(IStudioRepository studioRepository)
     : base(studioRepository)
 {
 }
示例#28
0
 public StudioService(IStudioRepository studios, IMapper mapper)
 {
     _studios = studios;
     _mapper  = mapper;
 }
示例#29
0
 public StudioMonitorApiController(IStudioRepository studioRepository)
 {
     _studioRepository = studioRepository;
 }
 public ActionResult <IEnumerable <Studio> > Get()
 {
     return(IStudioRepository.GetAll());
 }