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