Example #1
0
        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);
        }
Example #2
0
 public IPactVerifier RetrievedViaHttp(string url, string apiKey = null)
 {
     _retriever = new HttpPactRetriever(url, apiKey);
     return(this);
 }