public void GetFullResults( [Frozen] Mock <IHttpClient> httpClientMock, [Greedy] SpiderComponent sut, int scanId, SpiderScanResult fullResult) { // ARRANGE var json = new JObject( new JProperty("fullResults", JArray.FromObject(fullResult))); httpClientMock.SetupApiCall(sut, CallType.View, "fullResults", new Parameters { { "scanId", scanId } }) .Returns(json.ToString()) .Verifiable(); // ACT var result = sut.GetFullResults(scanId); // ASSERT result.ShouldBeEquivalentTo(fullResult); httpClientMock.Verify(); }