Пример #1
0
 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);
 }
Пример #2
0
 IPactBuilder IPactBuilder.With(IConsumerConfiguration config)
 {
     _configuration = MergedConfiguration.MergeConfigs(_configuration, config);
     return(this);
 }