Ejemplo n.º 1
0
 public MoviesToGetController(IMoviesToGetService moviesToGetService, IMovieUniquenessChecker movieUniquenessChecker, IMovieInfoService movieInfoService, IOptions <AppSettings> options)
     : base(options)
 {
     this.moviesToGetService     = moviesToGetService ?? throw new ArgumentNullException(nameof(moviesToGetService));
     this.movieUniquenessChecker = movieUniquenessChecker ?? throw new ArgumentNullException(nameof(movieUniquenessChecker));
     this.movieInfoService       = movieInfoService ?? throw new ArgumentNullException(nameof(movieInfoService));
 }
Ejemplo n.º 2
0
 public MovieMasterController(IMovieInfoService MovieService, IConfiguration configuration, IListResponseHandler <Movie> ListResponse,
                              IObjectResponseHandler <Movie> ObjectResponse, IResourceService messageService, IHostingEnvironment hostingEnvironment)
 {
     _MovieService       = IMovieInfoService;
     _configuration      = configuration;
     _ObjectResponse     = ObjectResponse;
     _ListResponse       = ListResponse;
     _messageService     = messageService;
     _hostingEnvironment = hostingEnvironment;
 }