Example #1
0
 public ValuesController(IUserService userSvc, IAlbumService albumSvc, IPostService postSvc, IPictureService pictureSvc)
 {
     _userSvc = userSvc;
     _albumSvc = albumSvc;
     _postSvc = postSvc;
     _pictureSvc = pictureSvc;
 }
 public PhotosController(ISessionService sessionService, IAlbumService albumService, IPhotoService photoService, ITagService tagService)
 {
     this.mSessionService = sessionService;
     this.mAlbumService = albumService;
     this.mPhotoService = photoService;
     this.mTagService = tagService;
 }
Example #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>();
 }
Example #4
0
        public AlbumsController(IAlbumService albumService)
        {
            if (albumService == null)
            {
                throw new ArgumentNullException("albumService");
            }

            _albumService = albumService;
        }
        public AlbumYearConstraint(IAlbumService albumService)
        {
            if (albumService == null)
            {
                throw new ArgumentNullException("albumService");
            }

            _albumService = albumService;
        }
Example #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;
 }
Example #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;
        }
Example #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;
 }
Example #10
0
 public ShoppingCartController(
     IAlbumService albumService,
     IShoppingCartService shoppingCartService,
     MusicStoreContext dbContext,
     ILogger <ShoppingCartController> logger)
 {
     _albumService        = albumService;
     _shoppingCartService = shoppingCartService;
     _dbContext           = dbContext;
     _logger = logger;
 }
Example #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();
        }
Example #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;
 }
Example #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();
 }
Example #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;
 }
Example #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();
        }
Example #17
0
 public ArtistController(
     IMemoryCache memoryCache,
     IArtistService artistService,
     IAlbumService albumService,
     ISongService songService,
     IHostingEnvironment hostingEnvironment)
 {
     _memoryCache   = memoryCache;
     _artistService = artistService;
     _albumService  = albumService;
     _songService   = songService;
 }
Example #18
0
 public ParsingService(ITrackService trackService,
                       IArtistService artistService,
                       IAlbumService albumService,
                       IMediaFileService mediaFileService,
                       Logger logger)
 {
     _albumService     = albumService;
     _artistService    = artistService;
     _trackService     = trackService;
     _mediaFileService = mediaFileService;
     _logger           = logger;
 }
 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;
 }
Example #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);
            }));
        }
 public UpdateTrackFileService(IDiskProvider diskProvider,
                               IConfigService configService,
                               ITrackService trackService,
                               IAlbumService albumService,
                               Logger logger)
 {
     _diskProvider  = diskProvider;
     _configService = configService;
     _trackService  = trackService;
     _albumService  = albumService;
     _logger        = logger;
 }
Example #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;
 }
Example #23
0
 public NzbSearchService(IIndexerFactory indexerFactory,
                         IAlbumService albumService,
                         IArtistService artistService,
                         IMakeDownloadDecision makeDownloadDecision,
                         Logger logger)
 {
     _indexerFactory       = indexerFactory;
     _albumService         = albumService;
     _artistService        = artistService;
     _makeDownloadDecision = makeDownloadDecision;
     _logger = logger;
 }
Example #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);
        }
Example #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);
 }
Example #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;
 }
 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();
 }
Example #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;
 }
Example #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;
 }
Example #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;
 }
Example #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());
 }
Example #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;
 }
Example #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;
 }
        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;
        }
Example #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;
        }
Example #39
0
 //private readonly IFileImageService _fileimageservice;
 public AlbumController(IAlbumService albumService)
 {
     _albumService = albumService;
     //_fileimageservice = fileImageService;
 }
 public PhotoController(IPhotoService photoService, IAlbumService albumService)
 {
     _photoService = photoService;
     _albumService = albumService;
 }
 public ShoppingCartController(IShoppingCartService shoppingCartService, IAlbumService albumService)
 {
     _shoppingCartService = shoppingCartService;
     _albumService = albumService;
 }
Example #42
0
 public PhotoController(IPhotoService photoService, IAlbumService albumService)
 {
     _photoService = photoService ?? new PhotoService();
     _albumService = albumService ?? new AlbumService();
 }
 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;
 }
 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;
 }
Example #50
0
 public AlbumController(IAlbumService albumService)
 {
     _albumService = albumService;
 }
Example #51
0
 public AlbumsController(IAlbumService albumService, IPhotoService photoService)
 {
     _albumService = albumService;
     _photoService = photoService;
 }
Example #52
0
 public UserController(IUserService userSvc, IPictureService pictureSvc, IAlbumService albumSvc)
 {
     _userSvc = userSvc;
     _pictureSvc = pictureSvc;
     _albumSvc = albumSvc;
 }
Example #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 );
        }
Example #55
0
 // formerly IRepository
 public AlbumsController(IAlbumService service)
 {
     _service = service;
 }
 public AlbumController(IAlbumService albumService, IArtistService artistService, IGenreService genreService)
 {
     _albumService = albumService;
     _artistService = artistService;
     _genreService = genreService;
 }
Example #57
0
 public AlbumController(IAlbumService albumService, ICategoryService categoryService)
 {
     this.AlbumService = albumService;
     this.CategoryService = categoryService;
 }
Example #58
0
 public HomeController(IAlbumService albumService)
 {
     this.albumService = albumService;
 }
 public AlbumDynamicNodeProvider(IAlbumService albumService)
 {
     _albumService = albumService;
 }