private PactBuilder(string description, IConsumerConfiguration config) { if (string.IsNullOrWhiteSpace(description)) { throw new ArgumentException("Please provide a description", nameof(description)); } this._description = description; _configuration = MergedConfiguration.MergeConfigs(Context.Configuration, config); }
IPactBuilder IPactBuilder.With(IConsumerConfiguration config) { _configuration = MergedConfiguration.MergeConfigs(_configuration, config); return(this); }