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")); }
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")); }