public void ConstructorWithSettings()
        {
            var stub = new StubTelemetry();

            var settings = new MongoApplicationInsightsSettings {
                FilteredCommands = new HashSet <string>(),
                MaxQueryTime     = TimeSpan.FromDays(6)
            };
            var factory = new MongoClientFactory(stub.TelemetryClient, settings);

            factory.Settings.Should().BeEquivalentTo(settings);
        }
            public Mocks(bool createTelemetry = true, MongoApplicationInsightsSettings settings = null)
            {
                StubTelemetry = new StubTelemetry();

                if (createTelemetry)
                {
                    var mongoClientSettings = MongoClientSettings.FromConnectionString(
                        "mongodb://localhost:27017/");

                    Telemetry = new MongoApplicationInsightsTelemetry(
                        mongoClientSettings,
                        TelemetryClient,
                        settings ?? new MongoApplicationInsightsSettings());
                }
            }