public IPactVerifier RetrievedFromFile(string localPath) { if (string.IsNullOrEmpty(_consumer) || string.IsNullOrEmpty(_provider)) { throw new PactifyException(ErrorMessages.ConsumerProviderMustBeDefined); } _retriever = new FilePactRetriever(_consumer, _provider, localPath); return(this); }
public IPactVerifier RetrievedViaHttp(string url, string apiKey = null) { _retriever = new HttpPactRetriever(url, apiKey); return(this); }