public async Task GetShowUpdatesAsync_MockWebApi_ShowsUpdates() { // Arrange var json = File.ReadAllText(Path.Combine(BasePath, DomainObjectFactoryTests.JSON_DATA_PATH, "show_updates.json")); var mockHttp = new MockHttpMessageHandler(); mockHttp.Expect($"{BASE_API_URL}/updates/shows") .Respond("application/json", json); var tvMazeClient = new TvMazeClient(BASE_API_URL, mockHttp.ToHttpClient()); // Act var showUpdates = await tvMazeClient.GetShowUpdatesAsync(); // Assert Assert.IsNotNull(showUpdates); Assert.IsNotEmpty(showUpdates); mockHttp.VerifyNoOutstandingExpectation(); }