Ejemplo n.º 1
0
 /// <summary>
 /// Sets how the spider handles parameters when checking URIs visited.
 /// </summary>
 /// <param name="value">How the spider should handle parameters when checking URIs visited.</param>
 public void SetOptionHandleParameters(HandleParametersOption value)
 {
     CallAction("setOptionHandleParameters", new Parameters
     {
         { "String", value.ToString().ToUpperInvariant() }
     });
 }
        public void SetOptionHandleParameters(
            [Frozen] Mock <IHttpClient> httpClientMock,
            [Greedy] SpiderComponent sut,
            HandleParametersOption value)
        {
            // ARRANGE
            httpClientMock.SetupApiCall(sut, CallType.Action, "setOptionHandleParameters",
                                        new Parameters
            {
                { "String", value.ToString().ToUpperInvariant() }
            })
            .ReturnsOkResult()
            .Verifiable();

            // ACT
            sut.SetOptionHandleParameters(value);

            // ASSERT
            httpClientMock.Verify();
        }