public void value_returns_value_for_key()
 {
     ResolveConnectionStringFamily family = new ResolveConnectionStringFamily();
     IDictionary<string, object> dictionary = new Dictionary<string, object> { { "UserAgent", _expectedValue } };
     RequestData data = RequestData.ForDictionary(dictionary);
     data.Value("UserAgent").ShouldEqual(_expectedValue);
 }
        public void SetUp()
        {
            family = new ResolveConnectionStringFamily();

            expandProp = ReflectionHelper.GetProperty<TestSettings>(t => t.DefaultPath);
            noExpandProp = ReflectionHelper.GetProperty<TestSettings>(t => t.DoNotExpand);

            configuredConnectionStringSetting = new ConnectionStringSettings(connectionStringKey, actualConnectionString);
            var connectionStrings = new Dictionary<string, ConnectionStringSettings>
            {
                {connectionStringKey, configuredConnectionStringSetting}
            };
            ResolveConnectionStringFamily.GetConnectionStringSettings =
                key => connectionStrings.ContainsKey(key) ? connectionStrings[key] : null;
        }