Inheritance: ILastFmManager
Esempio n. 1
0
        public void GetWeeklyChart_StandardScenario_GetSuccessfuly()
        {
            // Arrange
            LastFmManager manager = new LastFmManager();
            DateTime lastUpdate = DateTime.Now.AddDays(-6);

            manager.GetTrackChart(lastUpdate);
            // Act
            // Assert
        }
Esempio n. 2
0
        public void GetTrackInfo_StandardScenario_GetSuccessfuly()
        {
            // Arrange
            Track track = new Track
            {
                Tag = new MediaTag
                {
                    Name = "Believe",
                    Artist = "Cher",
                },
            };
            LastFmManager manager = new LastFmManager();

            // Act
            manager.UpdateTrackDetails(track);

            // Assert
            Assert.IsTrue(track.MBid != null && track.MBid == new Guid("32ca187e-ee25-4f18-b7d0-3b6713f24635"));
        }