Esempio n. 1
0
        public QueryParamBuilder(IApiStubState state, string key)
            : base(state)
        {
            if (string.IsNullOrEmpty(key))
            {
                throw new ArgumentNullException(nameof(key));
            }

            _key = key;
        }
Esempio n. 2
0
        public HttpRequestMockExpectation(
            ApiStubState state,
            int retryCount,
            TimeSpan retryInterval)
        {
            if (retryCount < 0)
            {
                throw new ArgumentOutOfRangeException(nameof(retryCount));
            }

            _state         = state ?? throw new ArgumentNullException(nameof(state));
            _retryCount    = retryCount;
            _retryInterval = retryInterval;
        }
 public MockHttpRequestAction(IApiStubState state)
 {
     _state = state ?? throw new ArgumentNullException(nameof(state));
 }
Esempio n. 4
0
 protected StubBuilderBase(IApiStubState state)
 {
     State = state ?? throw new ArgumentNullException(nameof(state));
 }
 public RequestBuilder(IApiStubState state)
     : base(state)
 {
 }
 public ApiStubBuilder(IApiStubState state)
     : base(state)
 {
 }
 public RequestCountBuilder(IApiStubState state)
 {
     _state = state ?? throw new ArgumentNullException(nameof(state));
 }
Esempio n. 8
0
 public ResponseBuilder(IApiStubState state)
     : base(state)
 {
 }
 public BodyBuilder(IApiStubState state)
     : base(state)
 {
 }