public void Should_DeserializeRecentActivityJson_ForValidInput() { //arrange string json = JsonRecentActivityResponseConstants.VALID_RECENT_ACTIVITY_JSON; IJsonSerializationProvider jsonSerializationProvider = new JsonSerializationProvider(); //act RecentActivity deserializedRecentActivity = jsonSerializationProvider.DeserializeJson <RecentActivity>(json); //assert deserializedRecentActivity.Should().BeEquivalentTo(CSharpRecentActivityTestCaseConstants.RECENT_ACTIVITY_OUTPUT_OBJECT); }
public async Task Should_GetRecentActivityAsync_ForValidInput() { //arrange int leagueId = 526113; int year = 2018; EspnFantasyFootballClient espnFantasyFootballClient = new EspnFantasyFootballClient(); //act RecentActivity recentActivity = await espnFantasyFootballClient.GetRecentActivity(leagueId, year); //assert recentActivity.Should().NotBeNull(); }