public void ThenTheUsersRecentStravaRunningHistoryIsProduced() { var acquiredItems = clientDriver.GetFoundItems(); var actualRunningHistory = new List <Rest.Entity.StravaActivity>(); foreach (var item in acquiredItems) { if (item is Rest.Entity.StravaActivity run) { actualRunningHistory.Add(run); } } actualRunningHistory[0].name.Should().Be("Cardiff Friday Morning Run"); actualRunningHistory[1].name.Should().Be("Oxford Half Marathon"); actualRunningHistory[2].name.Should().Be("Roath Lake Midnight Run"); actualRunningHistory[3].name.Should().Be("Late Night Run"); actualRunningHistory[4].name.Should().Be("Test Run"); }
public void ThenTheUsersLast_FMRecentlyPlayedHistoryIsProduced() { var acquiredItems = clientDriver.GetFoundItems(); var actualListeningHistory = new List <LastTrack>(); foreach (var item in acquiredItems) { if (item is LastTrack song) { actualListeningHistory.Add(song); } } actualListeningHistory.Should().HaveCount(5); actualListeningHistory[0].Name.Should().Be("The Chain - 2004 Remaster"); actualListeningHistory[1].Name.Should().Be("I Want To Break Free - Single Remix"); actualListeningHistory[2].Name.Should().Be("Good Vibrations - Remastered"); actualListeningHistory[3].Name.Should().Be("Dreams - 2004 Remaster"); actualListeningHistory[4].Name.Should().Be("Stayin Alive"); }