Ejemplo n.º 1
0
        public ProcessController(IInspectionService inspetionService,
                                 IProcessService processService,
                                 IOverSeaService overseaService,
                                 ICountryService countryService,
                                 IStoreService storeService,
                                 IWorkplaceService workplaceService,
                                 IFeedbackService feedbackService,
                                 IObservationService observationService,
                                 ITrackService trackService
                                 )
        {
            this._inspetionService = inspetionService;
            this._processService   = processService;

            this._overseaService     = overseaService;
            this._countryService     = countryService;
            this._storeService       = storeService;
            this._workplaceService   = workplaceService;
            this._feedbackService    = feedbackService;
            this._observationService = observationService;
            this._trackService       = trackService;

            // 目前登入者可用權限
            this._UserPermission = new UserPermission(storeService, workplaceService);
        }
Ejemplo n.º 2
0
 public void Init()
 {
     _trackService = Mock.Create <ITrackService>();
     _trackList    = new List <TrackDto>()
     {
         new TrackDto()
         {
             TrackId          = 1,
             IsActive         = true,
             TrackDescription = "track description 1",
             TrackName        = "track name 1"
         },
         new TrackDto()
         {
             TrackId          = 2,
             IsActive         = true,
             TrackDescription = "track description 2",
             TrackName        = "track name 2"
         },
         new TrackDto()
         {
             TrackId          = 3,
             IsActive         = true,
             TrackDescription = "track description 3",
             TrackName        = "track name 3"
         }
     };
 }
 public MainPageViewModel(INavigationService navigationService
                          , IPageDialogService pageDialogService
                          , IDialogService dialogService
                          , ITrackService trackService)
     : base(navigationService, pageDialogService, dialogService, trackService)
 {
 }
Ejemplo n.º 4
0
 public ManualImportService(IDiskProvider diskProvider,
                            IParsingService parsingService,
                            IDiskScanService diskScanService,
                            IMakeImportDecision importDecisionMaker,
                            IArtistService artistService,
                            IAlbumService albumService,
                            IReleaseService releaseService,
                            ITrackService trackService,
                            IAudioTagService audioTagService,
                            IImportApprovedTracks importApprovedTracks,
                            ITrackedDownloadService trackedDownloadService,
                            IDownloadedTracksImportService downloadedTracksImportService,
                            IEventAggregator eventAggregator,
                            Logger logger)
 {
     _diskProvider                  = diskProvider;
     _parsingService                = parsingService;
     _diskScanService               = diskScanService;
     _importDecisionMaker           = importDecisionMaker;
     _artistService                 = artistService;
     _albumService                  = albumService;
     _releaseService                = releaseService;
     _trackService                  = trackService;
     _audioTagService               = audioTagService;
     _importApprovedTracks          = importApprovedTracks;
     _trackedDownloadService        = trackedDownloadService;
     _downloadedTracksImportService = downloadedTracksImportService;
     _eventAggregator               = eventAggregator;
     _logger = logger;
 }
Ejemplo n.º 5
0
        public AudioController(IServiceFactory ninjectFactory)
        {
            if (ninjectFactory == null)
                throw new ArgumentNullException(nameof(ninjectFactory));

            _tracksService = ninjectFactory.CreateTracksService();
        }
Ejemplo n.º 6
0
 public AlbumMonitoredService(IArtistService artistService, IAlbumService albumService, ITrackService trackService, Logger logger)
 {
     _artistService = artistService;
     _albumService  = albumService;
     _trackService  = trackService;
     _logger        = logger;
 }
Ejemplo n.º 7
0
 public TrackController(ITrackService trackService, ILoggerFactory logger, ICacheManager cacheManager,
                        UserManager <ApplicationUser> userManager, IRoadieSettings roadieSettings)
     : base(cacheManager, roadieSettings, userManager)
 {
     this.Logger       = logger.CreateLogger("RoadieApi.Controllers.TrackController");
     this.TrackService = trackService;
 }
Ejemplo n.º 8
0
 public UserController(IUserService userService, ITrackService trackService, ICommentService commentService, IMapper mapper)
 {
     _userService    = userService;
     _trackService   = trackService;
     _commentService = commentService;
     _mapper         = mapper;
 }
Ejemplo n.º 9
0
        public void SetUp()
        {
            mocks         = new MockRepository();
            _trackService = MockRepository.GenerateMock <ITrackService>();

            //_tracker = new FedexTracker(_trackService, "key", "password", "accountNumber", "meterNumber", true);
        }
Ejemplo n.º 10
0
 public TestPageViewModel(INavigationService navigationService
                          , IPageDialogService pageDialogService
                          , IDialogService dialogService, ITrackService trackService)
     : base(navigationService, pageDialogService, dialogService, trackService)
 {
     Title = Constants.LABEL_TESTS;
 }
Ejemplo n.º 11
0
 public ImportApprovedTracks(IUpgradeMediaFiles trackFileUpgrader,
                             IMediaFileService mediaFileService,
                             IAudioTagService audioTagService,
                             ITrackService trackService,
                             IArtistService artistService,
                             IAddArtistService addArtistService,
                             IAlbumService albumService,
                             IRefreshAlbumService refreshAlbumService,
                             IRootFolderService rootFolderService,
                             IRecycleBinProvider recycleBinProvider,
                             IExtraService extraService,
                             IDiskProvider diskProvider,
                             IReleaseService releaseService,
                             IEventAggregator eventAggregator,
                             IManageCommandQueue commandQueueManager,
                             Logger logger)
 {
     _trackFileUpgrader   = trackFileUpgrader;
     _mediaFileService    = mediaFileService;
     _audioTagService     = audioTagService;
     _trackService        = trackService;
     _artistService       = artistService;
     _addArtistService    = addArtistService;
     _albumService        = albumService;
     _refreshAlbumService = refreshAlbumService;
     _rootFolderService   = rootFolderService;
     _recycleBinProvider  = recycleBinProvider;
     _extraService        = extraService;
     _diskProvider        = diskProvider;
     _releaseService      = releaseService;
     _eventAggregator     = eventAggregator;
     _commandQueueManager = commandQueueManager;
     _logger = logger;
 }
Ejemplo n.º 12
0
 public BatchProcess(IPeriodService service,
                     IIdentityService identityService,
                     ITrackService trackService,
                     IWasteStatisticService wasteStatisticService,
                     IBatchLogService batchLogService)
 {
     if (service == null)
     {
         throw new ArgumentNullException("service");
     }
     if (identityService == null)
     {
         throw new ArgumentNullException("identityService");
     }
     if (trackService == null)
     {
         throw new ArgumentNullException("trackService");
     }
     if (wasteStatisticService == null)
     {
         throw new ArgumentNullException("wasteStatisticService");
     }
     if (batchLogService == null)
     {
         throw new ArgumentNullException("batchLogService");
     }
     _service               = service;
     _identityService       = identityService;
     _trackService          = trackService;
     _wasteStatisticService = wasteStatisticService;
     _batchLogService       = batchLogService;
 }
 public MediaPlayerController(IBandService bandService, IAlbumService albumService,
                              ITrackService trackService)
 {
     BandService  = bandService;
     AlbumService = albumService;
     TrackService = trackService;
 }
Ejemplo n.º 14
0
 public TrackController(ITrackService trackService, ILogger <TrackController> logger, ICacheManager cacheManager,
                        UserManager <User> userManager, IRoadieSettings roadieSettings)
     : base(cacheManager, roadieSettings, userManager)
 {
     Logger       = logger;
     TrackService = trackService;
 }
Ejemplo n.º 15
0
 public TracksController(ITrackService shoppingService, IAlbumService albumService, IUserService userService, IUserCookieService userCookieService)
 {
     this.trackService      = shoppingService;
     this.albumService      = albumService;
     this.UserService       = userService;
     this.UserCookieService = userCookieService;
 }
 public TracksController(ITrackService trackService, IAlbumTrackService albumTrackService,
                         IAlbumService albumService, IEnumerationService enumerationService)
 {
     TrackService      = trackService;
     AlbumService      = albumService;
     AlbumTrackService = albumTrackService;
     Enumerator        = enumerationService;
 }
Ejemplo n.º 17
0
 public TracksController(FormulaContext context,
                         UserManager <SimUser> userManager,
                         PagingHelper pagingHelper,
                         ITrackService dataService)
     : base(context, userManager, pagingHelper, dataService)
 {
     _tracks = dataService;
 }
Ejemplo n.º 18
0
 public AlbumService(IUnitOfWork unitOfWork, IMapper mapper,
                     ITrackService trackService, IBandService bandService)
 {
     UnitOfWork   = unitOfWork;
     this.mapper  = mapper;
     TrackService = trackService;
     BandService  = bandService;
 }
Ejemplo n.º 19
0
 public TrackController(
     ITrackService trackService,
     IMapper mapper
     )
 {
     _trackService = trackService;
     _mapper       = mapper;
 }
Ejemplo n.º 20
0
 public RefreshTrackService(ITrackService trackService,
                            IAudioTagService audioTagService,
                            Logger logger)
 {
     _trackService    = trackService;
     _audioTagService = audioTagService;
     _logger          = logger;
 }
        public USPSShipmentTracker(ILogger logger, SeeSharpShipUspsSettings uspsSettings)
        {
            _logger       = logger;
            _uspsSettings = uspsSettings;

            // ReSharper disable once CSharpWarnings::CS0618
            _trackService = string.IsNullOrWhiteSpace(uspsSettings.Url) ? new TrackService() : new TrackService(uspsSettings.Url, new PostRequest());
        }
Ejemplo n.º 22
0
 public TrackModule(IArtistService artistService,
                    ITrackService trackService,
                    IUpgradableSpecification upgradableSpecification,
                    IBroadcastSignalRMessage signalRBroadcaster)
     : base(trackService, artistService, upgradableSpecification, signalRBroadcaster)
 {
     GetResourceAll = GetTracks;
 }
Ejemplo n.º 23
0
        public MainViewModel(IPlaylistService playlistService, ITrackService trackService)
        {
            _playlistService = playlistService;
            _trackService    = trackService;

            Playlists = new ObservableCollection <PlaylistViewModel>();
            Tracks    = new ObservableCollection <TrackViewModel>();
        }
Ejemplo n.º 24
0
        public async Task GetTopArtistsTracks_PaginationTest_ReturnsLessOrEqualAmountOfItems(string artistName, int page, int itemsPerPage)
        {
            ITrackService trackService = GetTrackService();

            var tracks = await trackService.GetTopArtistsTracks(artistName, page, itemsPerPage);

            Assert.False(tracks.Count > itemsPerPage, "collection size is greater than expected");
        }
Ejemplo n.º 25
0
 public HomeController(IArtistService artistService, IAlbumService albumService, ITrackService trackService, ISimilarService similarService, IHostingEnvironment appEnvironment)
 {
     this._artistService  = artistService;
     this._albumService   = albumService;
     this._trackService   = trackService;
     this._similarService = similarService;
     this._appEnvironment = appEnvironment;
 }
Ejemplo n.º 26
0
        public void GetAlbumTracks_ResponseTest_ReturnsNotEmptyCollection(string albumName)
        {
            ITrackService trackService = GetTrackService();

            var tracks = trackService.GetAlbumTracks(albumName);

            Assert.NotEmpty(tracks);
        }
Ejemplo n.º 27
0
 public TrackController(ITrackService trackService,
                        IMapper mapper,
                        ILogger <TrackController> logger)
 {
     _trackService = trackService;
     _mapper       = mapper;
     _logger       = logger;
 }
Ejemplo n.º 28
0
 protected BaseController()
 {
     this.UserService       = new UserService();
     this.UserCookieService = new UserCookieService();
     this.AlbumService      = new AlbumService();
     this.TrackService      = new TrackService();
     this.ViewBag           = new Dictionary <string, string>();
 }
Ejemplo n.º 29
0
 public MediaFileTableCleanupService(IMediaFileService mediaFileService,
                                     ITrackService trackService,
                                     Logger logger)
 {
     _mediaFileService = mediaFileService;
     _trackService     = trackService;
     _logger           = logger;
 }
        public TrackInputWindow(IRailwayServiceProxyCreationFacade facade, User principal, ILogging logger, Track track)
        {
            ITrackService       trackService = facade.GetTrackServiceProxy(principal.UserName, principal.Password);
            TrackInputViewModel viewModel    = new TrackInputViewModel(track, trackService, logger, this);

            DataContext = viewModel;
            InitializeComponent();
        }
Ejemplo n.º 31
0
 public PlayController(ITrackService trackService, IReleaseService releaseService, IPlayActivityService playActivityService, ILoggerFactory logger, ICacheManager cacheManager, IConfiguration configuration, UserManager <ApplicationUser> userManager)
     : base(cacheManager, configuration, userManager)
 {
     this.Logger              = logger.CreateLogger("RoadieApi.Controllers.PlayController");
     this.TrackService        = trackService;
     this.PlayActivityService = playActivityService;
     this.ReleaseService      = releaseService;
 }
Ejemplo n.º 32
0
        public FedexTracker(ITrackService trackService, string key, string password, string accountNumber, string meterNumber, bool production)
        {
            _trackService = trackService;
            _key = key;
            _password = password;
            _accountNumber = accountNumber;
            _meterNumber = meterNumber;

            if (production)
                _trackService.Url = PRODUCTION_URL;
            else
                _trackService.Url = DEV_URL;
        }
Ejemplo n.º 33
0
 public FileUploadController(IServiceFactory serviceFactory)
 {
     _tracksService = serviceFactory.CreateTracksService();
     _imageService = serviceFactory.CreateImageService();
 }
 public SchedulePresenter()
 {
     _talkService = new TalkService();
     _sessionService = new SessionService();
     _trackService = new TrackService();
 }
Ejemplo n.º 35
0
 public TrackApiController(ITrackService trackService)
 {
     this._trackService = trackService;
 }
Ejemplo n.º 36
0
 public CompilationController(IServiceFactory serviceFactory)
 {
     _compilationsService = serviceFactory.CreateCompilationService();
     _tracksService = serviceFactory.CreateTracksService();
     _imageService = serviceFactory.CreateImageService();
 }
Ejemplo n.º 37
0
        public void SetUp()
        {
            mocks = new MockRepository();
            _trackService = MockRepository.GenerateMock<ITrackService>();

            //_tracker = new FedexTracker(_trackService, "key", "password", "accountNumber", "meterNumber", true);
        }
Ejemplo n.º 38
0
 public TrackController(ITrackService trackService)
 {
     this.service = trackService.notNull();
 }