Пример #1
0
 public void HttpConfigurationIsAppliedToPolling()
 {
     TestHttpUtils.TestWithSpecialHttpConfigurations(
         PollingResponse(_flagData1),
         (targetUri, httpConfig, server) =>
     {
         var config = BasicConfig()
                      .DataSource(Components.PollingDataSource())
                      .Http(httpConfig)
                      .ServiceEndpoints(Components.ServiceEndpoints().Polling(targetUri))
                      .Build();
         using (var client = TestUtil.CreateClient(config, BasicUser))
         {
             VerifyFlagValues(client, _flagData1);
         }
     },
         testLogger
         );
 }
Пример #2
0
 public void HttpConfigurationIsAppliedToEvents()
 {
     TestHttpUtils.TestWithSpecialHttpConfigurations(
         EventsAcceptedResponse,
         (targetUri, httpConfig, server) =>
     {
         var config = BasicConfig()
                      .DiagnosticOptOut(true)
                      .Events(Components.SendEvents())
                      .Http(httpConfig)
                      .ServiceEndpoints(Components.ServiceEndpoints().Events(targetUri))
                      .Build();
         using (var client = TestUtil.CreateClient(config, BasicUser))
         {
             client.Flush();
             server.Recorder.RequireRequest();
         }
     },
         testLogger
         );
 }