/// <summary> /// Constructs, sends, and verifies a raw protcol request for the given query expression /// </summary> /// <param name="expression">The expression to verify</param> public virtual void Verify(QueryExpression expression) { ODataRequest request; ODataResponse response; expression = this.ResolveExpressionAndGetResponse(expression, out request, out response); IResponseVerifier verifier = null; ExpectedErrorMessage errorInformation = null; if (this.ODataRequestVersionResourceErrorCalculator.TryCalculateError(request, this.MaxProtocolVersion, out errorInformation)) { verifier = this.ProtocolTestServices.ResponseVerifierFactory.GetErrorVerifier(GetExpectedErrorStatusCode(errorInformation), errorInformation, this.ResourceVerifier); } else { verifier = this.ProtocolTestServices.ResponseVerifierFactory.GetStandardVerifier(GetExpectedStatusCode(request.Uri, this.UriEvaluator)); } verifier.Verify(request, response); }
public FlurlChatClient(IResponseVerifier responseVerifier) { _responseVerifier = responseVerifier; }
//internal const string HANDSHAKE_PATH = "/api/rtm.start"; public FlurlHandshakeClient(IResponseVerifier responseVerifier) { this._responseVerifier = responseVerifier; }
public FlurlReactionsClient(IResponseVerifier responseVerifier) { this.responseVerifier = responseVerifier; }
public FlurlFileClient(IResponseVerifier responseVerifier) { _responseVerifier = responseVerifier; }
public RequestExecutor(IRestSharpFactory restSharpFactory, IResponseVerifier responseVerifier) { _restSharpFactory = restSharpFactory; _responseVerifier = responseVerifier; }
//internal const string JOIN_DM_PATH = "/api/im.open"; //internal const string CHANNEL_CREATE_PATH = "/api/channels.create"; //internal const string CHANNEL_JOIN_PATH = "/api/channels.join"; //internal const string CHANNEL_ARCHIVE_PATH = "/api/channels.archive"; //internal const string CHANNEL_SET_PURPOSE_PATH = "/api/channels.setPurpose"; //internal const string CHANNEL_SET_TOPIC_PATH = "/api/channels.setTopic"; //internal const string CHANNELS_LIST_PATH = "/api/channels.list"; //internal const string GROUPS_LIST_PATH = "/api/groups.list"; //internal const string USERS_LIST_PATH = "/api/users.list"; public FlurlChannelClient(IResponseVerifier responseVerifier) { this._responseVerifier = responseVerifier; }
public FlurlAuthClient(IResponseVerifier responseVerifier) { this.responseVerifier = responseVerifier; }
public ConnectionFactory() { _restSharpFactory = new RestSharpFactory(); _responseVerifier = new ResponseVerifier(); _requestExecutor = new RequestExecutor(_restSharpFactory, _responseVerifier); }
public FlurlDialogClient(IResponseVerifier responseVerifier) { this.responseVerifier = responseVerifier; }
public FlurlConversationClient(IResponseVerifier responseVerifier) { this.responseVerifier = responseVerifier; }