示例#1
0
        public void ShouldAssumeIntegratedSecurityInCaseUserAndPasswordWereNotGiven()
        {
            var connectionResolver = new ConnectionResolver(new string[] { "database" });
            var database           = connectionResolver.ResolveConnectionString();

            Assert.That(database, Is.EqualTo(@"Data Source=.\sqlexpress;Initial Catalog=master;Integrated Security=true"));
        }
        public void ShouldResolveConnectionString()
        {
            var connectionResolver = new ConnectionResolver(new string[] { "database", "user", "password" });
            var database = connectionResolver.ResolveConnectionString();

            Assert.That(database, Is.EqualTo(@"Data Source=.\sqlexpress;Initial Catalog=master;User ID=user;Password=password"));
        }
示例#3
0
        public void ShouldResolveConnectionString()
        {
            var connectionResolver = new ConnectionResolver(new string[] { "database", "user", "password" });
            var database           = connectionResolver.ResolveConnectionString();

            Assert.That(database, Is.EqualTo(@"Data Source=.\sqlexpress;Initial Catalog=master;User ID=user;Password=password"));
        }
        public void ShouldAssumeIntegratedSecurityInCaseUserAndPasswordWereNotGiven()
        {
            var connectionResolver = new ConnectionResolver(new string[] { "database" });
            var database = connectionResolver.ResolveConnectionString();

            Assert.That(database, Is.EqualTo(@"Data Source=.\sqlexpress;Initial Catalog=master;Integrated Security=true"));
        }