public void GetConnectionStringFromConfigUsingInValidConnectionStringName()
        {
            Action sut = () => MongoHelpers.GetConnectionStringFromConfig("My.MissingPersistence");

            sut.ShouldThrow <ConfigurationErrorsException>();
        }
        public void GetConnectionStringFromConfigUsingValidConnectionString()
        {
            var result = MongoHelpers.GetConnectionStringFromConfig("NServiceBus/Persistence/MongoDB");

            result.Should().Be("mongodb://localhost:27017");
        }