public void GetOptionDomainsAlwaysInScope( [Frozen] Mock <IHttpClient> httpClientMock, [Greedy] SpiderComponent sut, IEnumerable <string> domainsAlwaysInScope) { // ARRANGE var json = new JObject( new JProperty("DomainsAlwaysInScope", domainsAlwaysInScope.ToJsonStringList())); httpClientMock.SetupApiCall(sut, CallType.View, "optionDomainsAlwaysInScope") .Returns(json.ToString()) .Verifiable(); // ACT #pragma warning disable CS0618 // Type or member is obsolete var result = sut.GetOptionDomainsAlwaysInScope(); #pragma warning restore CS0618 // Type or member is obsolete // ASSERT result.ShouldBeEquivalentTo(domainsAlwaysInScope); httpClientMock.Verify(); }