public EnterspeedIngestServiceTestFixture()
            {
                Customize(new AutoNSubstituteCustomization());
                Connection            = this.Freeze <IEnterspeedConnection>();
                ConfigurationProvider = this.Freeze <IEnterspeedConfigurationProvider>();

                this.Register <IJsonSerializer>(() => new SystemTextJsonSerializer());
            }
Exemple #2
0
 public EnterspeedIngestService(
     IEnterspeedConnection connection,
     IJsonSerializer jsonSerializer,
     IEnterspeedConfigurationProvider configurationProvider)
 {
     _connection     = connection;
     _jsonSerializer = jsonSerializer;
     _ingestEndpoint = $"/ingest/v{configurationProvider.Configuration.IngestVersion}";
 }
 public EnterspeedConnection(IEnterspeedConfigurationProvider configurationProvider)
 {
     _configurationProvider = configurationProvider;
 }
Exemple #4
0
            public EnterspeedConnectionTestFixture()
            {
                Customize(new AutoNSubstituteCustomization());

                ConfigurationProvider = this.Freeze <IEnterspeedConfigurationProvider>();
            }