コード例 #1
0
        public void SetUp()
        {
            var document = new XmlDocument();
            document.LoadXml(xml.Trim().Replace("'", "\""));
            theFileName = "connectionStrings.config";
            document.Save(theFileName);

            var settings = MockRepository.GenerateMock<DeploymentSettings>();
            var dict = new Dictionary<string, string>(){
                {"server1","first-server"},
                {"server2","second-server"},
                {"catalog","ourCatalog"},
                {"user-id","theUser"},
                {"password","thePassword"}
            };

            var dictionaryKeyValues = new DictionaryKeyValues(dict);
            settings.Stub(x => x.SubstitutionValues()).Return(dictionaryKeyValues);

            var resolver = new ConnectionStringResolver(settings);
            resolver.Resolve(theFileName);
        }
コード例 #2
0
        public static string Parse(string template, IDictionary<string, string> substitutions)
        {
            var values = new DictionaryKeyValues(substitutions);

            return Parse(template, values);
        }
コード例 #3
0
        public static string Parse(string template, IDictionary <string, string> substitutions)
        {
            var values = new DictionaryKeyValues(substitutions);

            return(Parse(template, values));
        }
コード例 #4
0
ファイル: SamlResponse.cs プロジェクト: RyanHauert/fubumvc
 public SamlResponse()
 {
     Attributes = new DictionaryKeyValues<object>(_attributes);
     Subject = new Subject();
 }