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