Exemplo n.º 1
0
        public void Init()
        {
            _searchManager = MockRepository.GenerateStub<ISearchManager>();
            _trackHandler = MockRepository.GenerateStub<ITrackHandler>();
            _eventAggregator = MockRepository.GenerateStub<IEventAggregator>();

            _spotifyServices = new SpotifyServices(_searchManager, _trackHandler, _eventAggregator);
        }
Exemplo n.º 2
0
        public MainViewModel(ISpotifyServices spotifyServices)
        {
            _spotifyServices = spotifyServices;
            _spotifyServices.EventAggregator.Subscribe(this);

            PlaybackStatus = PlaybackStatus.NoActiveTrack;
            Title = _title;
        }
Exemplo n.º 3
0
 public AlgoService(ITwitterServices twitterService,
                    IUserService userService,
                    ISpotifyServices spotifyService,
                    IInstagramServices instagramService,
                    IPinterestServices pinterestService,
                    IDeezerServices deezerService)
 {
     _twitterService   = twitterService;
     _userService      = userService;
     _deezerService    = deezerService;
     _pinterestService = pinterestService;
     _instagramService = instagramService;
     _spotifyService   = spotifyService;
 }
 public SpotifyAuthenticationController(ISpotifyServices spotifyServices)
 {
     this.spotifyServices = spotifyServices;
 }
Exemplo n.º 5
0
        public void Init()
        {
            _spotifyServices = MockRepository.GenerateStub<ISpotifyServices>();
            _spotifyServices.Stub(x => x.EventAggregator.Subscribe(Arg<IMainViewModel>.Is.Anything));

            _mainViewModel = new MainViewModel(_spotifyServices);
        }
Exemplo n.º 6
0
 public WeatherForecastController(ILogger <WeatherForecastController> logger, IOpenWeatherServices openWeatherServices, ISpotifyServices spotifyServices)
 {
     _logger = logger;
     _openWeatherServices = openWeatherServices;
     _spotifyServices     = spotifyServices;
 }
Exemplo n.º 7
0
 public SpotifyController(IUserService userService, ISpotifyServices spotifyService)
 {
     _spotifyService = spotifyService;
     _userService    = userService;
 }