Esempio n. 1
0
        public static void When_clear_inline_creds()
        {
            var sqlCsb = new SqlConnectionStringBuilder
            {
                DataSource     = ".",
                InitialCatalog = "AdventureWorks",
                UserID         = "admin",
                Password       = "******" + "test code"
            };

            sqlCsb = sqlCsb.ClearInlineCredentials();

            Assert.Equal(".", sqlCsb.DataSource);
            Assert.Equal("AdventureWorks", sqlCsb.InitialCatalog);
            Assert.Equal(string.Empty, sqlCsb.UserID);
            Assert.Equal(string.Empty, sqlCsb.Password);
        }