public void LoadScript( [Frozen] Mock <IHttpClient> httpClientMock, [Greedy] ScriptComponent sut, string name, string type, string engine, string path, string description) { // ARRANGE httpClientMock.SetupApiCall(sut, CallType.Action, "load", new Parameters { { "scriptName", name }, { "scriptType", type }, { "scriptEngine", engine }, { "fileName", path }, { "scriptDescription", description } }) .ReturnsOkResult() .Verifiable(); // ACT sut.LoadScript(name, type, engine, path, description); // ASSERT httpClientMock.Verify(); }