public void Test_AddDefaultDiagnosticsDependencies_InjectsNecessaryDependencies() { var services = new ServiceCollection(); var configuration = new ConfigurationBuilder().Build(); TestProxy.AddDefaultDiagnosticsDependencies(services, configuration); Assert.Contains(services, (sd) => { return(sd.ServiceType == typeof(ITracingOptions)); }); Assert.Contains(services, (sd) => { return(sd.ServiceType == typeof(IDiagnosticObserver)); }); Assert.Contains(services, (sd) => { return(sd.ServiceType == typeof(IInboundRequestObserver)); }); Assert.Contains(services, (sd) => { return(sd.ServiceType == typeof(ITracing)); }); Assert.Contains(services, (sd) => { return(sd.ServiceType == typeof(IDynamicMessageProcessor)); }); Assert.Contains(services, (sd) => { return(sd.ServiceType == typeof(IDiagnosticsManager)); }); }