コード例 #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);
        }
コード例 #3
0
 public ItemMapper(IArtistMapper artistMapper, IGenreMapper genreMapper)
 {
     _artistMapper = artistMapper;
     _genreMapper  = genreMapper;
 }
コード例 #4
0
ファイル: AlbumMapper.cs プロジェクト: Jc54/PlayMe
 public AlbumMapper(IArtistMapper artistMapper)
 {
     this.artistMapper = artistMapper;
 }
コード例 #5
0
ファイル: TrackMapper.cs プロジェクト: Jc54/PlayMe
 public TrackMapper(IAlbumMapper albumMapper, IArtistMapper artistMapper, IAlreadyQueuedHelper alreadyQueuedHelper)
 {
     this.artistMapper = artistMapper;
     this.albumMapper = albumMapper;
     this.alreadyQueuedHelper = alreadyQueuedHelper;
 }
コード例 #6
0
ファイル: ArtistService.cs プロジェクト: xFinitive/Rockstars
 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;
 }
コード例 #9
0
 public ArtistRepo(wzvzhuteContext context, IArtistMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
コード例 #10
0
ファイル: TrackMapper.cs プロジェクト: shbmira/PlayMe
 public TrackMapper(IAlbumMapper albumMapper, IArtistMapper artistMapper, IAlreadyQueuedHelper alreadyQueuedHelper)
 {
     this.artistMapper        = artistMapper;
     this.albumMapper         = albumMapper;
     this.alreadyQueuedHelper = alreadyQueuedHelper;
 }