public void Init() { _searchManager = MockRepository.GenerateStub<ISearchManager>(); _trackHandler = MockRepository.GenerateStub<ITrackHandler>(); _eventAggregator = MockRepository.GenerateStub<IEventAggregator>(); _spotifyServices = new SpotifyServices(_searchManager, _trackHandler, _eventAggregator); }
public MainViewModel(ISpotifyServices spotifyServices) { _spotifyServices = spotifyServices; _spotifyServices.EventAggregator.Subscribe(this); PlaybackStatus = PlaybackStatus.NoActiveTrack; Title = _title; }
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; }
public void Init() { _spotifyServices = MockRepository.GenerateStub<ISpotifyServices>(); _spotifyServices.Stub(x => x.EventAggregator.Subscribe(Arg<IMainViewModel>.Is.Anything)); _mainViewModel = new MainViewModel(_spotifyServices); }
public WeatherForecastController(ILogger <WeatherForecastController> logger, IOpenWeatherServices openWeatherServices, ISpotifyServices spotifyServices) { _logger = logger; _openWeatherServices = openWeatherServices; _spotifyServices = spotifyServices; }
public SpotifyController(IUserService userService, ISpotifyServices spotifyService) { _spotifyService = spotifyService; _userService = userService; }