Пример #1
0
        public void TestConfigurationConnectStrings()
        {
            var sedqa = GeneralUtility.GetConnectStringFromInstance("SEDQA");

            Assert.IsNotEmpty(sedqa);
            Assert.True(sedqa.IndexOf("Password=", StringComparison.CurrentCultureIgnoreCase) > -1);
            var connect = new ConnectString(sedqa);

            Assert.IsNotEmpty(connect.DataSource);
            Assert.IsNotEmpty(connect.User);
            Assert.IsNotEmpty(connect.Password);

            Console.WriteLine(connect.ToDisplayString());
        }