public void ParseEasyStringWithUselessValues()
 {
     const string connection_str = "{\"DbConnection\": \"connection\",\"AdminName\":\"test\"}";
     var parser = new PostfixConnectionStringParser(connection_str);
     Assert.AreEqual("connection", parser.PostfixAdminDbConnectionString);
 }
 public void ParseStringWithRealDAte()
 {
     const string connection_str = "{\"DbConnection\": \"Server=teamlab;Database=Test;User ID=qqq;Password=qqq;Pooling=True;Character Set=utf8\",\"AdminName\":\"[email protected]\"}";
     var parser = new PostfixConnectionStringParser(connection_str);
     Assert.AreEqual("Server=teamlab;Database=Test;User ID=qqq;Password=qqq;Pooling=True;Character Set=utf8", parser.PostfixAdminDbConnectionString);
 }
 public void ParseEasyString()
 {
     const string connection_str = "{\"DbConnection\":\"connection\"}";
     var parser = new PostfixConnectionStringParser(connection_str);
     Assert.AreEqual("connection", parser.PostfixAdminDbConnectionString);
 }