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