예제 #1
0
 public SalesController(ISalesRepository repo, IAlbumsRepository repoAlbums,
                        ICashbackRepository repoCash)
 {
     _repo       = repo;
     _repoAlbums = repoAlbums;
     _repoCash   = repoCash;
 }
        //private readonly ILog _log;

        public StoreController(IGenreRepository genres, IAlbumsRepository albums, ILogProvider log)
        {
            _genres = genres;
            _albums = albums;
            _log    = log;
            //_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
        }
        //MusicStoreEntities storeDB = new MusicStoreEntities();

        public ShoppingCart(IUnitOfWork unitOfWork, ICartRepository carts, IAlbumsRepository albums, IOrderDetailRepository orderDetails)
        {
            _unitOfWork = unitOfWork;
            _carts = carts;
            _albums = albums;
            _orderDetails = orderDetails;
        }
 public ShoppingCartFactory(IUnitOfWork unitOfWork, ICartRepository carts, IAlbumsRepository albums, IOrderDetailRepository orderDetails)
 {
     _unitOfWork   = unitOfWork;
     _carts        = carts;
     _albums       = albums;
     _orderDetails = orderDetails;
 }
        //private MusicStoreEntities db = new MusicStoreEntities();

        public StoreManagerController(IUnitOfWork unitOfWork, IGenreRepository genres, IAlbumsRepository albums, IArtistRepository artists)
        {
            _unitOfWork = unitOfWork;
            _genres = genres;
            _albums = albums;
            _artists = artists;
        }
예제 #6
0
        //private MusicStoreEntities db = new MusicStoreEntities();

        public StoreManagerController(IUnitOfWork unitOfWork, IGenreRepository genres, IAlbumsRepository albums, IArtistRepository artists)
        {
            _unitOfWork = unitOfWork;
            _genres     = genres;
            _albums     = albums;
            _artists    = artists;
        }
        //private readonly ILog _log;

        public StoreController(IGenreRepository genres, IAlbumsRepository albums, ILogProvider log)
        {
            _genres = genres;
            _albums = albums;
            _log = log;
            //_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
        }
예제 #8
0
 public AlbumPageViewPresenter(
     IDependencyResolverContainer container,
     IAlbumsRepository albumsRepository)
     : base(container)
 {
     this.albumsRepository = albumsRepository;
 }
예제 #9
0
        internal ArtistPageViewPresenter(
            IApplicationResources resources,
            IPlayQueueService playQueueService,
            INavigationService navigationService,
            IPlaylistsService playlistsService,
            IAlbumsRepository albumsRepository,
            ISongsCachingService cachingService,
            IApplicationStateService stateService)
        {
            this.resources         = resources;
            this.playQueueService  = playQueueService;
            this.navigationService = navigationService;
            this.playlistsService  = playlistsService;
            this.albumsRepository  = albumsRepository;
            this.cachingService    = cachingService;
            this.stateService      = stateService;
            this.PlayCommand       = new DelegateCommand(this.Play);
            this.ShowAllCommand    = new DelegateCommand(this.ShowAll);

            this.QueueCommand    = new DelegateCommand(this.Queue, () => this.BindingModel.SelectedItems.Count > 0);
            this.DownloadCommand = new DelegateCommand(this.Download, () => this.BindingModel.SelectedItems.Count > 0);
            this.UnPinCommand    = new DelegateCommand(this.UnPin, () => this.BindingModel.SelectedItems.Count > 0);
        }
예제 #10
0
 public AlbumsController(IAlbumsRepository repository)
 {
     this.repository = repository;
 }
예제 #11
0
 public AlbumsController(ILogger logger, IAlbumsRepository albumsRepository, IPhotosRepository photosRepository)
 {
     _logger           = (logger?.ForContext <AlbumsController>()).ThrowIfNull(nameof(logger));
     _albumsRepository = albumsRepository.ThrowIfNull(nameof(albumsRepository));
     _photosRepository = photosRepository.ThrowIfNull(nameof(photosRepository));
 }
예제 #12
0
 public AlbumsService(IAlbumsRepository repository)
 {
     _repository = repository;
 }
예제 #13
0
 public AlbumCoordinator(IAlbumsRepository albumsRepository)
 {
     _albumRepository = albumsRepository;
 }
예제 #14
0
 public AlbumsController(IAlbumsRepository repo)
 {
     _repo = repo;
 }
예제 #15
0
 public PhotosService(IAlbumsRepository albumsInterface,
                      ICommentsService commentsService)
 {
     _commentsService = commentsService;
     _albumsInterface = albumsInterface;
 }
예제 #16
0
 public AlbumsController(IAlbumsRepository context)
 {
     _context = context;
 }
예제 #17
0
 public IAlbumsRepository GetAlbumsRepository()
 {
     return s_albumsRepository ?? (s_albumsRepository = new AlbumsRepository(this));
 }
예제 #18
0
 public AlbumService(IAlbumsRepository albumsRepository)
 {
     this._albumsRepository = albumsRepository;
 }
 public CommentsService(IAlbumsRepository albumsInterface)
 {
     _albumsInterface = albumsInterface;
 }
예제 #20
0
 public UsersController(ILogger logger, IAlbumsRepository albumsRepository)
 {
     _logger           = (logger?.ForContext <UsersController>()).ThrowIfNull(nameof(logger));
     _albumsRepository = albumsRepository.ThrowIfNull(nameof(albumsRepository));
 }
예제 #21
0
 public CommentsController(IAlbumsRepository repo)
 {
     _repo = repo;
 }
        //MusicStoreEntities storeDB = new MusicStoreEntities();

        public ShoppingCartController(ICartRepository carts, IAlbumsRepository albums, ShoppingCartFactory shoppingCartFactory)
        {
            _carts  = carts;
            _albums = albums;
            _shoppingCartFactory = shoppingCartFactory;
        }
예제 #23
0
 public HomeController(IAlbumsRepository albumsRepository)
 {
     _albumsRepository = albumsRepository;
 }
        //MusicStoreEntities storeDB = new MusicStoreEntities();

        public ShoppingCartController(ICartRepository carts, IAlbumsRepository albums, ShoppingCartFactory shoppingCartFactory)
        {
            _carts = carts;
            _albums = albums;
            _shoppingCartFactory = shoppingCartFactory;
        }
 public HomeController(IAlbumsRepository albumsRepository)
 {
     _albumsRepository = albumsRepository;
 }