public GenreFormHandler(IEntityRepository <IVideogameEntity> entityRepository, IGenreRepository genreRepository,
                         IGenreFactory genreFactory)
 {
     this.entityRepository = entityRepository;
     this.genreRepository  = genreRepository;
     this.genreFactory     = genreFactory;
 }
Exemple #2
0
 public CreatePieceCommand(
     IPieceRepositoryFacade repository,
     IDateService dateService,
     IPieceFactory pieceFactory,
     IArtistFactory artistFactory,
     IMediumFactory mediumFactory,
     IGenreFactory genreFactory,
     ISubgenreFactory subgenreFactory,
     ISubjectMatterFactory subjectMatterFactory,
     IAcquisitionFactory acquisitionFactory,
     IFundingSourceFactory fundingSourceFactory,
     IPieceSourceFactory pieceSourceFactory,
     ILocationFactory locationFactory,
     ICollectionFactory collectionFactory,
     IUnitOfWork unitOfWork)
 {
     this.repository           = repository;
     this.dateService          = dateService;
     this.pieceFactory         = pieceFactory;
     this.artistFactory        = artistFactory;
     this.mediumFactory        = mediumFactory;
     this.genreFactory         = genreFactory;
     this.subgenreFactory      = subgenreFactory;
     this.subjectMatterFactory = subjectMatterFactory;
     this.acquisitionFactory   = acquisitionFactory;
     this.fundingSourceFactory = fundingSourceFactory;
     this.pieceSourceFactory   = pieceSourceFactory;
     this.locationFactory      = locationFactory;
     this.collectionFactory    = collectionFactory;
     this.unitOfWork           = unitOfWork;
 }
Exemple #3
0
 public BookManager(LibraryContext context, IBookFactory bookFac, IAuthorFactory authorFac, IGenreFactory genreFac, IPublisherFactory publisherFac)
 {
     _context      = context;
     _bookFac      = bookFac;
     _authorFac    = authorFac;
     _genreFac     = genreFac;
     _publisherFac = publisherFac;
 }
        public GenreService(IMusicLibraryContext musicLibraryContext, IMusicLibraryBaseContext baseContext, IGenreFactory genreFactory)
        {
            if (genreFactory == null)
            {
                throw new ArgumentNullException(nameof(genreFactory));
            }
            if (baseContext == null)
            {
                throw new ArgumentNullException(nameof(baseContext));
            }

            this.musicLibraryContext = musicLibraryContext;
            this.baseContext         = baseContext;
            this.genreFactory        = genreFactory;
        }
Exemple #5
0
        public GenreService(IRepository <Genre> genreRepository, IUnitOfWork unitOfWork, IGenreFactory genreFactory)
        {
            if (genreRepository == null)
            {
                throw new ArgumentNullException("Genre repository cannot be null!");
            }

            if (genreFactory == null)
            {
                throw new ArgumentNullException("Genre factory cannot be null!");
            }

            if (unitOfWork == null)
            {
                throw new ArgumentNullException("Unit of work cannot be null!");
            }

            this.genreRepository = genreRepository;
            this.unitOfWork      = unitOfWork;
            this.genreFactory    = genreFactory;
        }
 public GenreService(IGenreDao genreDao, IGenreFactory genreFactory)
 {
     _genreDao = genreDao;
     _genreFactory = genreFactory;
 }
 public GenreService(IGenreDao genreDao, IGenreFactory genreFactory)
 {
     _genreDao     = genreDao;
     _genreFactory = genreFactory;
 }