Example #1
0
 public SingerDomainService(ISingerRepository singerRepository,
                            IUnitOfWork unitOfWork, ICheckFile checkFile)
 {
     this.singerRepository = singerRepository;
     this.unitOfWork       = unitOfWork;
     this.checkFile        = checkFile;
 }
Example #2
0
 public SongsController(ISongRepository songRepository, IAlbumRepository albumRepository, ISingerRepository singerRepository)
 {
     this._songRepository   = songRepository;
     this._albumRepository  = albumRepository;
     this._singerRepository = singerRepository;
     this._handler          = new SongHandler(_songRepository, _albumRepository, _singerRepository);
 }
Example #3
0
 public SingerController(ApplicationDbContext dbContext)
 {
     _singerRepo = new SingerRepository(dbContext);
     _songRepo   = new SongRepository(dbContext);
     _albumRepo  = new AlbumRepository(dbContext);
 }
Example #4
0
 public SingerController()
 {
     this.repository = new Repository.SingerRepository(new ApplicationDbContext());
 }
Example #5
0
 public SingerHandler(ISingerRepository repository)
 {
     _repository = repository;
 }
Example #6
0
 public SongHandler(ISongRepository repository, IAlbumRepository albumRepository, ISingerRepository singerRepository)
 {
     this._repository       = repository;
     this._albumRepository  = albumRepository;
     this._singerRepository = singerRepository;
 }
 public SingerController(ISingerRepository repository)
 {
     _repository = repository;
     _handler    = new SingerHandler(repository);
 }
Example #8
0
 public SingerService(ISingerRepository singerRepository)
 {
     _singerRepository = singerRepository;
 }