public void FindCurrentlyPlayingFrom_Delegates_To_PageScraper()
        {
            var pageScraper = MockRepository.GenerateStub<ILastfmPageScraper>();
              var service = new LastfmService("key", pageScraper, null);
              var user = "******";
              var scraperResult = new LastfmMusicSource { MusicServiceName = "Spotify", MusicServiceUrl = @"http://www.spotify.com" };

              pageScraper.Stub(ps => ps.GetLastfmMusicSource("http://www.last.fm/user/" + user)).Return(scraperResult);

              var response = service.FindMusicSource(user);
              Assert.That(response.MusicServiceName, Is.EqualTo(scraperResult.MusicServiceName));
              Assert.That(response.MusicServiceUrl, Is.EqualTo(scraperResult.MusicServiceUrl));
        }
 public void SetUp()
 {
     apiKey = ConfigurationManager.AppSettings["LastfmApiKey"];
       Assert.That(apiKey, Is.Not.Empty, "The End To End tests require a Last fm API key to be defined in the user.config");
       service = new LastfmService(apiKey);
 }