示例#1
0
 public ArtistService(IArtistRepository artistRepository, IItemRepository itemRepository,
                      IArtistMapper artistMapper, IItemMapper itemMapper)
 {
     _artistRepository = artistRepository;
     _itemRepository   = itemRepository;
     _artistMapper     = artistMapper;
     _itemMapper       = itemMapper;
 }
示例#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;
 }
示例#4
0
 public AlbumMapper(IArtistMapper artistMapper)
 {
     this.artistMapper = artistMapper;
 }
示例#5
0
 public TrackMapper(IAlbumMapper albumMapper, IArtistMapper artistMapper, IAlreadyQueuedHelper alreadyQueuedHelper)
 {
     this.artistMapper = artistMapper;
     this.albumMapper = albumMapper;
     this.alreadyQueuedHelper = alreadyQueuedHelper;
 }
示例#6
0
 public ArtistService(IRepository <Artist> repository, IArtistMapper artistMapper)
 {
     _repository   = repository;
     _artistMapper = artistMapper;
 }
示例#7
0
 public SongMapper(IArtistMapper artistMapper)
 {
     _artistMapper = artistMapper;
 }
示例#8
0
 public AlbumMapper(IArtistMapper artistMapper)
 {
     this.artistMapper = artistMapper;
 }
 public ArtistRepo(wzvzhuteContext context, IArtistMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
示例#10
0
 public TrackMapper(IAlbumMapper albumMapper, IArtistMapper artistMapper, IAlreadyQueuedHelper alreadyQueuedHelper)
 {
     this.artistMapper        = artistMapper;
     this.albumMapper         = albumMapper;
     this.alreadyQueuedHelper = alreadyQueuedHelper;
 }