Example #1
0
 public ArtistService(IArtistRepository artistRepository, IItemRepository itemRepository,
                      IArtistMapper artistMapper, IItemMapper itemMapper)
 {
     _artistRepository = artistRepository;
     _itemRepository   = itemRepository;
     _artistMapper     = artistMapper;
     _itemMapper       = itemMapper;
 }
Example #2
0
        public CatalogContextFactory()
        {
            var contextOptions = new DbContextOptionsBuilder <CatalogContext>()
                                 .UseInMemoryDatabase(Guid.NewGuid().ToString())
                                 .EnableSensitiveDataLogging()
                                 .Options;

            EnsureCreation(contextOptions);
            ContextInstance = new TestCatalogContext(contextOptions);
            GenreMapper     = new GenreMapper();
            ArtistMapper    = new ArtistMapper();
            ItemMapper      = new ItemMapper(ArtistMapper, GenreMapper);
        }
 public ItemMapper(IArtistMapper artistMapper, IGenreMapper genreMapper)
 {
     _artistMapper = artistMapper;
     _genreMapper  = genreMapper;
 }
Example #4
0
 public AlbumMapper(IArtistMapper artistMapper)
 {
     this.artistMapper = artistMapper;
 }
Example #5
0
 public TrackMapper(IAlbumMapper albumMapper, IArtistMapper artistMapper, IAlreadyQueuedHelper alreadyQueuedHelper)
 {
     this.artistMapper = artistMapper;
     this.albumMapper = albumMapper;
     this.alreadyQueuedHelper = alreadyQueuedHelper;
 }
Example #6
0
 public ArtistService(IRepository <Artist> repository, IArtistMapper artistMapper)
 {
     _repository   = repository;
     _artistMapper = artistMapper;
 }
Example #7
0
 public SongMapper(IArtistMapper artistMapper)
 {
     _artistMapper = artistMapper;
 }
Example #8
0
 public AlbumMapper(IArtistMapper artistMapper)
 {
     this.artistMapper = artistMapper;
 }
 public ArtistRepo(wzvzhuteContext context, IArtistMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Example #10
0
 public TrackMapper(IAlbumMapper albumMapper, IArtistMapper artistMapper, IAlreadyQueuedHelper alreadyQueuedHelper)
 {
     this.artistMapper        = artistMapper;
     this.albumMapper         = albumMapper;
     this.alreadyQueuedHelper = alreadyQueuedHelper;
 }