コード例 #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
ファイル: AlbumViewModel.cs プロジェクト: janaknm/HelloWorld
 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
ファイル: PostController.cs プロジェクト: Elorvetti/TreA
 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;
 }
コード例 #9
0
 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
ファイル: RewriteController.cs プロジェクト: Elorvetti/TreA
 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;
 }
コード例 #16
0
        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;
 }
コード例 #29
0
 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;
 }
コード例 #30
0
 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
ファイル: PhotoController.cs プロジェクト: Elorvetti/TreA
 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
ファイル: AlbumModule.cs プロジェクト: tjman92/Lidarr
 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
ファイル: HomeController.cs プロジェクト: alexand1r/SnapBook
 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;
        }
コード例 #37
0
        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;
 }
コード例 #40
0
 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;
 }
コード例 #44
0
 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));
 }
コード例 #47
0
 public AlbumController(IAlbumService albums, IPhotoService photos)
 {
     albumService = albums;
     photoService = photos;
 }
コード例 #48
0
 public ValidationController(IAlbumService albumService)
 {
     _albumService = albumService;
 }
コード例 #49
0
 public AlbumTestData(IAlbumService albumService)
 {
     this.albumService = albumService;
 }
コード例 #50
0
 public AlbumController(IAlbumService albumService)
 {
     _albumService = albumService;
 }
コード例 #51
0
ファイル: AlbumsController.cs プロジェクト: JenLees/PhotoApp
 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();
 }
コード例 #54
0
        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
ファイル: AlbumController.cs プロジェクト: yasenm/NewsSystem
 public AlbumController(IAlbumService albumService, ICategoryService categoryService)
 {
     this.AlbumService = albumService;
     this.CategoryService = categoryService;
 }
コード例 #58
0
 public HomeController(IAlbumService albumService)
 {
     this.albumService = albumService;
 }
コード例 #59
0
 public AlbumDynamicNodeProvider(IAlbumService albumService)
 {
     _albumService = albumService;
 }