예제 #1
0
 public ValuesController(IUserService userSvc, IAlbumService albumSvc, IPostService postSvc, IPictureService pictureSvc)
 {
     _userSvc = userSvc;
     _albumSvc = albumSvc;
     _postSvc = postSvc;
     _pictureSvc = pictureSvc;
 }
예제 #2
0
 public PhotosController(ISessionService sessionService, IAlbumService albumService, IPhotoService photoService, ITagService tagService)
 {
     this.mSessionService = sessionService;
     this.mAlbumService = albumService;
     this.mPhotoService = photoService;
     this.mTagService = tagService;
 }
예제 #3
0
 public AlbumViewModel(IAlbumService albumService, string albumName, string path, byte[] thumb)
 {
     _albumService = albumService;
     this.Name = albumName;
     this.Path = path;
     this.Thumb = thumb;
     Pictures = new ObservableCollection<PictureViewModel>();
 }
예제 #4
0
        public AlbumsController(IAlbumService albumService)
        {
            if (albumService == null)
            {
                throw new ArgumentNullException("albumService");
            }

            _albumService = albumService;
        }
예제 #5
0
        public AlbumYearConstraint(IAlbumService albumService)
        {
            if (albumService == null)
            {
                throw new ArgumentNullException("albumService");
            }

            _albumService = albumService;
        }
예제 #6
0
 public PedidoController(IPedidoService pedidoService, IHttpContextAccessor httpContextAccessor, IClienteService clienteService, IProdutoService produtoService, IAlbumService albumService, IFotoService fotoService, IPedidoFotoProdutoService pedidoFotoProdutoService, IFotoProdutoService fotoProdutoService)
 {
     _pedidoService            = pedidoService;
     _httpContextAccessor      = httpContextAccessor;
     _clienteService           = clienteService;
     _produtoService           = produtoService;
     _albumService             = albumService;
     _fotoService              = fotoService;
     _pedidoFotoProdutoService = pedidoFotoProdutoService;
     _fotoProdutoService       = fotoProdutoService;
 }
예제 #7
0
        public SearchViewModel(IMvxNavigationService navigationService, ITopNavigationViewModelService topNavigationViewModelService, IBottomNavigationViewModelService bottomNavigationViewModelService, ISongService songService, IArtistService artistService, IAlbumService albumService, IPlaylistService playlistService)
        {
            _navigationService                = navigationService;
            _topNavigationViewModelService    = topNavigationViewModelService;
            _bottomNavigationViewModelService = bottomNavigationViewModelService;

            _songService     = songService;
            _artistService   = artistService;
            _albumService    = albumService;
            _playlistService = playlistService;
        }
예제 #8
0
 public PostController(ICommonService commonService, IPostService postService, ICategoryService categoryService, IArgumentService argumentService, IAlbumService albumService, IPhotoService photoService, IVideoService videoService, ISlugService slugService)
 {
     this._commonService   = commonService;
     this._postService     = postService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._albumService    = albumService;
     this._photoService    = photoService;
     this._videoService    = videoService;
     this._slugService     = slugService;
 }
 public AlbumsController(IAlbumService albumService,
                         ICloudService cloudService,
                         UserManager <User> userManager,
                         ILogger <AlbumsController> logger)
     : base(userManager)
 {
     this.logger            = logger;
     this.albumService      = albumService;
     this.cloudService      = cloudService;
     this.CurrentController = this.GetType().Name;
 }
예제 #10
0
 public ShoppingCartController(
     IAlbumService albumService,
     IShoppingCartService shoppingCartService,
     MusicStoreContext dbContext,
     ILogger <ShoppingCartController> logger)
 {
     _albumService        = albumService;
     _shoppingCartService = shoppingCartService;
     _dbContext           = dbContext;
     _logger = logger;
 }
예제 #11
0
        public static void ClassInit(TestContext context1)
        {
            Container.Install(new BussinessLayerInstaller());
            MappingInit.ConfigureMapping();
            _songReviewService = Container.Resolve <ISongReviewService>();
            _songService       = Container.Resolve <ISongService>();
            _albumService      = Container.Resolve <IAlbumService>();
            _interpretService  = Container.Resolve <IInterpretService>();

            DeleteTables();
        }
예제 #12
0
 public CutoffModule(IAlbumCutoffService albumCutoffService,
                     IAlbumService albumService,
                     IArtistStatisticsService artistStatisticsService,
                     IMapCoversToLocal coverMapper,
                     IUpgradableSpecification upgradableSpecification,
                     IBroadcastSignalRMessage signalRBroadcaster)
     : base(albumService, artistStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "wanted/cutoff")
 {
     _albumCutoffService = albumCutoffService;
     GetResourcePaged    = GetCutoffUnmetAlbums;
 }
예제 #13
0
 public HomeController(UserManager <ApplicationUser> userManager, GlobalSettings settings, IAlbumService albumService, IBookService bookService, IMovieService movieService,
                       IGameService gameService, IPopService popService) : base(userManager)
 {
     _settings     = settings;
     _albumService = albumService;
     _bookService  = bookService;
     _movieService = movieService;
     _gameService  = gameService;
     _popService   = popService;
     var us = GetCurrentUser();
 }
예제 #14
0
 public RewriteController(ISlugService slugService, ICategoryService categoryService, IArgumentService argumentService, IPostService postService, IAlbumService albumService, IPhotoService photoService, IVideoService videoService, IReviewService reviewService)
 {
     this._slugService     = slugService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._postService     = postService;
     this._albumService    = albumService;
     this._photoService    = photoService;
     this._videoService    = videoService;
     this._reviewService   = reviewService;
 }
예제 #15
0
 public AlbumController(IAlbumService albumService, HtmlEncoder htmlEncoder,
                        ILogger <AlbumController> logger,
                        IMemoryCache memoryCache,
                        IDistributedCache distributedCache)
 {
     _albumService          = albumService;
     this._htmlEncoder      = htmlEncoder;
     this._logger           = logger;
     this._memoryCache      = memoryCache;
     this._distributedCache = distributedCache;
 }
        public UserDetailsService(ILogger logger, IUserService userService, ITodoService todoService, IPostService postService, ICommentService commentService, IAlbumService albumService, IPhotoService photoService)
        {
            _logger         = logger.ForContext("SourceContext", this.GetType().Name);
            _userService    = userService;
            _todoService    = todoService;
            _postService    = postService;
            _commentService = commentService;
            _albumService   = albumService;
            _photoService   = photoService;

            _userDetailsResponse = new UserDetailsResponse();
        }
예제 #17
0
 public ArtistController(
     IMemoryCache memoryCache,
     IArtistService artistService,
     IAlbumService albumService,
     ISongService songService,
     IHostingEnvironment hostingEnvironment)
 {
     _memoryCache   = memoryCache;
     _artistService = artistService;
     _albumService  = albumService;
     _songService   = songService;
 }
예제 #18
0
 public ParsingService(ITrackService trackService,
                       IArtistService artistService,
                       IAlbumService albumService,
                       IMediaFileService mediaFileService,
                       Logger logger)
 {
     _albumService     = albumService;
     _artistService    = artistService;
     _trackService     = trackService;
     _mediaFileService = mediaFileService;
     _logger           = logger;
 }
예제 #19
0
 public AlbumController(IAlbumRepository albumRepository,
                        IArtistaRepository artistaRepository,
                        IAlbumService albumService,
                        IMapper mapper,
                        INotifier notifier,
                        IUser user) : base(notifier, user)
 {
     _albumRepository   = albumRepository;
     _artistaRepository = artistaRepository;
     _albumService      = albumService;
     _mapper            = mapper;
 }
예제 #20
0
        public ChangeAlbumViewModel(IMvxNavigationService navigationService, IUserDialogs userDialogs, IValidator validator, ISongService songService, IGenreService genreService, IArtistService artistService, IAlbumService albumService, IBottomNavigationViewModelService bottomNavigationViewModelService, ITopNavigationViewModelService topNavigationViewModelService)
        {
            _navigationService                = navigationService;
            _topNavigationViewModelService    = topNavigationViewModelService;
            _bottomNavigationViewModelService = bottomNavigationViewModelService;

            _userDialogs = userDialogs;

            _validationHelper = new ValidationHelper(validator, this, Errors.Value, (propertyName) => { FocusName.Value = propertyName; });

            _songService   = songService;
            _genreService  = genreService;
            _artistService = artistService;
            _albumService  = albumService;

            ValidateNameCommand = new MvxCommand(() => _validationHelper.Validate(() => Name));

            ValidateGenresCommand = new MvxCommand(() => _validationHelper.Validate(() => Genres));

            ValidateArtistsCommand = new MvxCommand(() => _validationHelper.Validate(() => Artists));

            ValidateSongsCommand = new MvxCommand(() => _validationHelper.Validate(() => Songs));

            InitValidationCommand = new MvxCommand(() => {
                _validationHelper.ResetValidation();
            });

            ChangeCommand = new MvxCommand(() =>
            {
                if (!IsTaskExecutedValueConverter.Convert(ChangeTask.Value))
                {
                    ChangeTask.Value = NotifyTaskCompletion.Create(AttemptChangeAsync);
                }
            });

            _genresTokenParentObject = new TokenParentHelper(new MvxCommand <TokenViewModel>((_) =>
            {
                Genres.Value?.Remove(_ as TokenViewModel <GenreModel>);
                ValidateGenresCommand.Execute(null);
            }));

            _artistsTokenParentObject = new TokenParentHelper(new MvxCommand <TokenViewModel>((_) =>
            {
                Artists.Value?.Remove(_ as TokenViewModel <ArtistModel>);
                ValidateArtistsCommand.Execute(null);
            }));

            _songsTokenParentObject = new TokenParentHelper(new MvxCommand <TokenViewModel>((_) =>
            {
                Songs.Value?.Remove(_ as TokenViewModel <SongModel>);
                ValidateSongsCommand.Execute(null);
            }));
        }
예제 #21
0
 public UpdateTrackFileService(IDiskProvider diskProvider,
                               IConfigService configService,
                               ITrackService trackService,
                               IAlbumService albumService,
                               Logger logger)
 {
     _diskProvider  = diskProvider;
     _configService = configService;
     _trackService  = trackService;
     _albumService  = albumService;
     _logger        = logger;
 }
예제 #22
0
 public AdminService(IUsersService usersService,
                     ICloudService cloudService,
                     IRouteService routeService,
                     IAlbumService albumService,
                     IStoryService storyService)
 {
     this.storyService = storyService;
     this.albumService = albumService;
     this.routeService = routeService;
     this.cloudService = cloudService;
     this.usersService = usersService;
 }
예제 #23
0
 public NzbSearchService(IIndexerFactory indexerFactory,
                         IAlbumService albumService,
                         IArtistService artistService,
                         IMakeDownloadDecision makeDownloadDecision,
                         Logger logger)
 {
     _indexerFactory       = indexerFactory;
     _albumService         = albumService;
     _artistService        = artistService;
     _makeDownloadDecision = makeDownloadDecision;
     _logger = logger;
 }
예제 #24
0
        public AlbumServiceTest()
        {
            IUnityContainer container = Bootstrapper.Initialise();

            var cryptoProvidrer = container.Resolve <ICryptoProvider>();

            albumService = container.Resolve <IAlbumService>();
            var workFactory = new TestUnitOfWorkFactory();

//            _albumService = new AlbumService(workFactory);
            userService = new UserService(workFactory, cryptoProvidrer, albumService);
        }
예제 #25
0
 public StatisticsViewComponent(
     IFileService fileService,
     IAlbumService albumService,
     IImageService imageService,
     IStringLocalizer <ViewComponentResources> localizer)
 {
     this.fileService  = fileService;
     this.albumService = albumService;
     this.imageService = imageService;
     this.localizer    = localizer;
     MappingFunctions.LoadResource(this.localizer);
 }
예제 #26
0
 public AdminController(IAdminService adminService,
                        IUsersService usersService,
                        IRouteService routeService,
                        IStoryService storyService,
                        IAlbumService albumService)
 {
     this.storyService = storyService;
     this.albumService = albumService;
     this.routeService = routeService;
     this.usersService = usersService;
     this.adminService = adminService;
 }
예제 #27
0
 public StatisticService(IAlbumService albumService, IBookService bookService, IGameService gameService, IMovieService movieService,
                         IPopService popService,
                         IWishService wishService)
 {
     _albumService = albumService;
     _bookService  = bookService;
     _gameService  = gameService;
     _movieService = movieService;
     _popService   = popService;
     _wishService  = wishService;
     _items        = GetAllItems();
 }
예제 #28
0
 public AlbumController(
     InkettUserManager userManager,
     IAlbumService albumService,
     IProfileService profileService,
     IAlbumViewModelService albumViewModelService,
     IAuthorizationService authorizationService)
 {
     _albumService          = albumService;
     _userManager           = userManager;
     _albumViewModelService = albumViewModelService;
     _authorizationService  = authorizationService;
 }
 public UserController(IUserService userService, IAlbumService albumService,
                       IMapper mapper, UserManager <User> userMgr,
                       IPasswordHasher <User> passwordHasher,
                       IUserValidator <User> userValidator)
 {
     _mapper         = mapper;
     _albumService   = albumService;
     _userService    = userService;
     _userManager    = userMgr;
     _passwordHasher = passwordHasher;
     _userValidator  = userValidator;
 }
 public ManagementController(ITextAttributeService attrService, IImageProcessor imageProcessor,
                             IConverterFactory factory, IAlbumService albumService, IPhotoService photoService,
                             ITagService tagService, IWatermarkService watermarkService)
 {
     _imageProcessor   = imageProcessor;
     _factory          = factory;
     _converterAttr    = _factory.GetConverter <ITextAttributeConverter>();
     _attrService      = attrService;
     _albumService     = albumService;
     _tagService       = tagService;
     _photoService     = photoService;
     _watermarkService = watermarkService;
 }
예제 #31
0
 public ShoppingCartController(
     IShoppingCartManager shoppingCartManager,
     ISongService songService,
     UserManager <User> userManager,
     IShoppingService shoppingService,
     IAlbumService albumsService)
 {
     this.shoppingCartManager = shoppingCartManager;
     this.songService         = songService;
     this.userManager         = userManager;
     this.shoppingService     = shoppingService;
     this.albumsService       = albumsService;
 }
예제 #32
0
 public PhotoController(ICommonService commonService, IPhotoService photoService, IPhotoFolderService photoFolderService, IAlbumService albumService, IFolderService folderService, IFileService fileService, IUserService userService, IHomeService homeService, IArgumentService argumentService, IPostService postService)
 {
     this._commonService      = commonService;
     this._photoService       = photoService;
     this._photoFolderService = photoFolderService;
     this._albumService       = albumService;
     this._folderService      = folderService;
     this._fileService        = fileService;
     this._userService        = userService;
     this._homeService        = homeService;
     this._argumentService    = argumentService;
     this._postService        = postService;
 }
예제 #33
0
 public AlbumModule(IAlbumService albumService,
                    IReleaseService releaseService,
                    IArtistStatisticsService artistStatisticsService,
                    IMapCoversToLocal coverMapper,
                    IUpgradableSpecification upgradableSpecification,
                    IBroadcastSignalRMessage signalRBroadcaster)
     : base(albumService, artistStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster)
 {
     _releaseService = releaseService;
     GetResourceAll  = GetAlbums;
     UpdateResource  = UpdateAlbum;
     Put("/monitor", x => SetAlbumsMonitored());
 }
예제 #34
0
 public HomeController(
     IPhotoService photos,
     IAlbumService albums,
     IUserService users,
     IAdService ads,
     UserManager <User> userManager)
 {
     this.photos      = photos;
     this.albums      = albums;
     this.users       = users;
     this.ads         = ads;
     this.userManager = userManager;
 }
예제 #35
0
 public AlbumsController(IAlbumService albumService, IMapper mapper)
 {
     if (albumService == null)
     {
         throw new ArgumentNullException();
     }
     if (mapper == null)
     {
         throw new ArgumentNullException();
     }
     this.albumService = albumService;
     this.mapper       = mapper;
 }
예제 #36
0
        public AlbumSlugConstraint(string yearParameterName, IAlbumService albumService)
        {
            if (yearParameterName == null)
            {
                throw new ArgumentNullException("yearParameterName");
            }

            if (albumService == null)
            {
                throw new ArgumentNullException("albumService");
            }

            _yearParameterName = yearParameterName;
            _albumService = albumService;
        }
        public RegisterRoutesStartupTask(RouteCollection routes, IAlbumService albumService)
        {
            if (routes == null)
            {
                throw new ArgumentNullException("routes");
            }

            if (albumService == null)
            {
                throw new ArgumentNullException("albumService");
            }

            _routes = routes;
            _albumService = albumService;
        }
예제 #38
0
        public AlbumsController(
                IGenreService genreSvc,
                IArtistService artistSvc,
                IAlbumService albumSvc
            )
        {
            if (genreSvc == null)
                throw new ArgumentNullException("genreSvc");
            if (artistSvc == null)
                throw new ArgumentNullException("artistSvc");
            if (albumSvc == null)
                throw new ArgumentNullException("albumSvc");

            _genreSvc = genreSvc;
            _artistSvc = artistSvc;
            _albumSvc = albumSvc;
        }
예제 #39
0
 //private readonly IFileImageService _fileimageservice;
 public AlbumController(IAlbumService albumService)
 {
     _albumService = albumService;
     //_fileimageservice = fileImageService;
 }
 public PhotoController(IPhotoService photoService, IAlbumService albumService)
 {
     _photoService = photoService;
     _albumService = albumService;
 }
예제 #41
0
 public ShoppingCartController(IShoppingCartService shoppingCartService, IAlbumService albumService)
 {
     _shoppingCartService = shoppingCartService;
     _albumService = albumService;
 }
예제 #42
0
 public PhotoController(IPhotoService photoService, IAlbumService albumService)
 {
     _photoService = photoService ?? new PhotoService();
     _albumService = albumService ?? new AlbumService();
 }
예제 #43
0
 public AlbumsController(ISessionService sessionService, IAlbumService albumService, ITagService tagService)
 {
     this.mSessionService = sessionService;
     this.mAlbumService = albumService;
     this.mTagService = tagService;
 }
 public HomeController(IMapper mapper, IAlbumService albumService)
 {
     this.mapper = mapper;
     this.albumService = albumService;
 }
예제 #45
0
 public CartController(IAlbumService albumService, ICartService cartService, ICookieStorageService cookieStorageService)
 {
     _albumService = albumService;
     _cartService = cartService;
     _cookieStorageService = cookieStorageService;
 }
 public AlbumController()
 {
     var db = new MediaSystemContext();
     this.albumService = new AlbumService(new EfGenericRepository<Album>(db), new EfGenericRepository<Producer>(db), new EfGenericRepository<Artist>(db), new EfGenericRepository<Song>(db));
 }
 public AlbumController(IAlbumService albums, IPhotoService photos)
 {
     albumService = albums;
     photoService = photos;
 }
 public ValidationController(IAlbumService albumService)
 {
     _albumService = albumService;
 }
 public AlbumTestData(IAlbumService albumService)
 {
     this.albumService = albumService;
 }
예제 #50
0
 public AlbumController(IAlbumService albumService)
 {
     _albumService = albumService;
 }
예제 #51
0
 public AlbumsController(IAlbumService albumService, IPhotoService photoService)
 {
     _albumService = albumService;
     _photoService = photoService;
 }
예제 #52
0
 public UserController(IUserService userSvc, IPictureService pictureSvc, IAlbumService albumSvc)
 {
     _userSvc = userSvc;
     _pictureSvc = pictureSvc;
     _albumSvc = albumSvc;
 }
예제 #53
0
 public AlbumController(IAlbumService albumService, IFileStoreService fileStoreService)
 {
     _albumService = albumService ?? new AlbumService(new AlbumRepository());
     _fileStoreService = fileStoreService ?? new FileStoreService();
 }
        public void AlbumsTestFixtureSetup()
        {
            _albumRepository = new Mock<IAlbumRepository>();
            _artistRepository = new Mock<IArtistRepository>();
            _genreRepository = new Mock<IGenreRepository>();

               _albumService = new AlbumService(_albumRepository.Object, _artistRepository.Object,_genreRepository.Object );
        }
예제 #55
0
 // formerly IRepository
 public AlbumsController(IAlbumService service)
 {
     _service = service;
 }
예제 #56
0
 public AlbumController(IAlbumService albumService, IArtistService artistService, IGenreService genreService)
 {
     _albumService = albumService;
     _artistService = artistService;
     _genreService = genreService;
 }
예제 #57
0
 public AlbumController(IAlbumService albumService, ICategoryService categoryService)
 {
     this.AlbumService = albumService;
     this.CategoryService = categoryService;
 }
예제 #58
0
 public HomeController(IAlbumService albumService)
 {
     this.albumService = albumService;
 }
 public AlbumDynamicNodeProvider(IAlbumService albumService)
 {
     _albumService = albumService;
 }