public async Task GetShowCrewAsync_MockWebApi_ShowId_ShowCrew() { // Arrange const int showId = 1; var json = File.ReadAllText(Path.Combine(BasePath, DomainObjectFactoryTests.JSON_DATA_PATH, "crew.json")); var mockHttp = new MockHttpMessageHandler(); mockHttp.Expect($"{BASE_API_URL}/shows/{showId}/crew") .Respond("application/json", json); var tvMazeClient = new TvMazeClient(BASE_API_URL, mockHttp.ToHttpClient()); // Act var crew = await tvMazeClient.GetShowCrewAsync(showId); // Assert Assert.IsNotNull(crew); Assert.IsNotEmpty(crew); mockHttp.VerifyNoOutstandingExpectation(); }