Beispiel #1
0
 public DataManager(
     IActorDataProvider actorDataProvider,
     IDirectorDataProvider directorDataProvider,
     IFilmDataProvider filmDataProvider,
     IUserDataProvider userDataProvider,
     IPrizeDataProvider prizeDataProvider,
     string xmlPath = "file.xml")
 {
     document = XDocument.Load(xmlPath);
     this.actorDataProvider    = actorDataProvider;
     this.directorDataProvider = directorDataProvider;
     this.filmDataProvider     = filmDataProvider;
     this.userDataProvider     = userDataProvider;
     this.prizeDataProvider    = prizeDataProvider;
 }
Beispiel #2
0
        public ModeratorController(IMovieDataProvider movieDataProvider,
                                   IActorDataProvider actorDataProvider, ICategoryDataProvider categoryDataProvider, IMovieService movieService,
                                   IDirectorDataProvider directorDataProvider, IMetadataDataProvider metadataDataProvider, ICategoryService categoryService, IActorService actorService,
                                   IMetadataService metadataService, IMainMovieService mainMovieService, IMainMovieDataProvider mainMovieDataProvider, IDirectorService directorService)
            : base()
        {
            _movieDataProvider     = movieDataProvider;
            _actorDataProvider     = actorDataProvider;
            _categoryDataProvider  = categoryDataProvider;
            _directorDataProvider  = directorDataProvider;
            _metadataDataProvider  = metadataDataProvider;
            _mainMovieDataProvider = mainMovieDataProvider;

            _movieService     = movieService;
            _categoryService  = categoryService;
            _actorService     = actorService;
            _metadataService  = metadataService;
            _mainMovieService = mainMovieService;
            _directorService  = directorService;
        }
Beispiel #3
0
 public ActorController(IActorDataProvider actorDataProvider, IActorService actorService)
 {
     _actorDataProvider = actorDataProvider;
     _actorService      = actorService;
 }