public void GetOptionScope( [Frozen] Mock <IHttpClient> httpClientMock, [Greedy] SpiderComponent sut, string scope) { // ARRANGE var json = new JObject( new JProperty("Scope", scope)); httpClientMock.SetupApiCall(sut, CallType.View, "optionScope") .Returns(json.ToString()) .Verifiable(); // ACT #pragma warning disable CS0618 // Type or member is obsolete var result = sut.GetOptionScope(); #pragma warning restore CS0618 // Type or member is obsolete // ASSERT result.Should().Be(scope); httpClientMock.Verify(); }