public void EnableScript( [Frozen] Mock <IHttpClient> httpClientMock, [Greedy] ScriptComponent sut, string name) { // ARRANGE httpClientMock.SetupApiCall(sut, CallType.Action, "enable", new Parameters { { "scriptName", name } }) .ReturnsOkResult() .Verifiable(); // ACT sut.EnableScript(name); // ASSERT httpClientMock.Verify(); }