public void GivenAJsonString_WhenGettingAnEpisodeByEpisodeId_WithAValidEpisodeId_ItShouldReturnAnEpisode() { const Episodes.TestSet id = Episodes.TestSet.Continuum; var parameters = new GetEpisodeDetailsParams { EpisodeId = (int)id }; var mock = GetKodiServiceMock(parameters); var service = mock.Object; var actual = service.GetEpisodeDetails(parameters, "UnitTests"); var expected = Episodes.GetEpisode(id); Assert.IsInstanceOf <JsonRpcResponse <GetEpisodeDetailsResponse> >(actual); Assert.That(actual.Result.EpisodeDetails.EpisodeId, Is.EqualTo(expected.EpisodeDetails.EpisodeId)); AssertThatPropertyValuesAreEquals(actual.Result.EpisodeDetails, expected.EpisodeDetails); }