internal HttpMockPortGenerator(IUnavailablePortsProvider unavailablePortsProvider, int minPortValue = defaultMinPortValue, int maxPortValue = defaultMaxPortValue)
 {
     this.unavailablePortsProvider = unavailablePortsProvider;
     this.minPortValue             = minPortValue;
     this.maxPortValue             = maxPortValue;
     actualPorts = new HashSet <int>();
     random      = new Random(DateTime.Now.Millisecond);
 }
 public HttpMocksExceptionFactory(
     IUnavailablePortsProvider unavailablePortsProvider)
 {
     this.unavailablePortsProvider = unavailablePortsProvider;
 }