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