public void GetOptionSkipURLString( [Frozen] Mock <IHttpClient> httpClientMock, [Greedy] SpiderComponent sut, string scopeText) { // ARRANGE var json = new JObject( new JProperty("SkipURLString", scopeText)); httpClientMock.SetupApiCall(sut, CallType.View, "optionSkipURLString") .Returns(json.ToString()) .Verifiable(); // ACT var result = sut.GetOptionSkipURLString(); // ASSERT result.Should().Be(scopeText); httpClientMock.Verify(); }