Beispiel #1
0
 public MoviesToSeeController(IMoviesToSeeService moviesToSeeService, IMovieUniquenessChecker movieUniquenessChecker, IMovieInfoService movieInfoService, IOptions <AppSettings> options)
     : base(options)
 {
     this.moviesToSeeService     = moviesToSeeService ?? throw new ArgumentNullException(nameof(moviesToSeeService));
     this.movieUniquenessChecker = movieUniquenessChecker ?? throw new ArgumentNullException(nameof(movieUniquenessChecker));
     this.movieInfoService       = movieInfoService ?? throw new ArgumentNullException(nameof(movieInfoService));
 }
Beispiel #2
0
 public DatabaseSeeder(ISeedData seedData, IMoviesToGetService moviesToGetService, IMoviesToSeeService moviesToSeeService,
                       IUserService userService, IRoleService roleService, IIdGeneratorQueue idGeneratorQueue, ILogger <DatabaseSeeder> logger)
 {
     this.seedData           = seedData ?? throw new ArgumentNullException(nameof(seedData));
     this.moviesToGetService = moviesToGetService ?? throw new ArgumentNullException(nameof(moviesToGetService));
     this.moviesToSeeService = moviesToSeeService ?? throw new ArgumentNullException(nameof(moviesToSeeService));
     this.userService        = userService ?? throw new ArgumentNullException(nameof(userService));
     this.roleService        = roleService ?? throw new ArgumentNullException(nameof(roleService));
     this.idGeneratorQueue   = idGeneratorQueue ?? throw new ArgumentNullException(nameof(idGeneratorQueue));
     this.logger             = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public MovieUniquenessChecker(IMoviesToGetService moviesToGetService, IMoviesToSeeService moviesToSeeService)
 {
     this.moviesToGetService = moviesToGetService ?? throw new ArgumentNullException(nameof(moviesToGetService));
     this.moviesToSeeService = moviesToSeeService ?? throw new ArgumentNullException(nameof(moviesToSeeService));
 }