Ejemplo n.º 1
0
 public ConfigServerCheckFailed(
     ConfigFetcher.Urls urls, string headerName, string expectedValue, Option <string> actual
     ) : base(
         urls, $"Expected header '{headerName}' to be '{expectedValue}', but it was {actual}"
         )
 {
 }
Ejemplo n.º 2
0
        public void TestToString()
        {
            var urls = new ConfigFetcher.Urls(new Uri("http://fetch.url"), new Uri("http://report.url"));
            var str  = urls.ToString();

            str.shouldInclude(urls.reportUrl.ToString());
            str.shouldNotInclude(urls.fetchUrl.ToString());
        }
Ejemplo n.º 3
0
 public ConfigWrongContentType(ConfigFetcher.Urls urls, string expectedContentType, string actualContentType)
     : base(
         urls, $"Expected 'Content-Type' to be '{expectedContentType}', but it was '{actualContentType}'"
         )
 {
     this.expectedContentType = expectedContentType;
     this.actualContentType   = actualContentType;
 }
Ejemplo n.º 4
0
 protected ConfigFetchError(ConfigFetcher.Urls urls, string message)
 {
     this.message = message;
     this.urls    = urls;
 }
Ejemplo n.º 5
0
 public ConfigWWWError(ConfigFetcher.Urls urls, WWWWithHeaders wwwWithHeaders)
     : base(urls, $"WWW error: {wwwWithHeaders.www.error}")
 {
     this.wwwWithHeaders = wwwWithHeaders;
 }
Ejemplo n.º 6
0
 public ConfigTimeoutError(ConfigFetcher.Urls urls, Duration timeout)
     : base(urls, $"Timed out: {timeout}")
 {
     this.timeout = timeout;
 }