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