public void Stop( [Frozen] Mock <IHttpClient> httpClientMock, [Greedy] SpiderComponent sut, int scanId) { // ARRANGE httpClientMock.SetupApiCall(sut, CallType.Action, "stop", new Parameters { { "scanId", scanId } }) .ReturnsOkResult() .Verifiable(); // ACT sut.Stop(scanId); // ASSERT httpClientMock.Verify(); }