public void CanCreateWithConnectionStringName() { var result = new RavenDbConnectionInfo { ConnectionStringName = "Test1" }; Assert.That(result, Is.Not.Null); Assert.That(result.ConnectionString, Is.EqualTo("Url=http://localhost;Database=UtilityDatabaseTest1")); }
public void CanCreateWithConnectionString() { var result = new RavenDbConnectionInfo { ConnectionString = "Url=http://localhost;Database=database" }; Assert.That(result, Is.Not.Null); Assert.That(result.ConnectionString, Is.EqualTo("Url=http://localhost;Database=database")); }
public void CanGetFullConnectionStringValues() { var result = new RavenDbConnectionInfo { ConnectionString = "Url=http://localhost:8080;Database=database;User=user;Password=password" }; Assert.That(result.ServerAddress, Is.EqualTo("http://localhost:8080")); Assert.That(result.DatabaseName, Is.EqualTo("database")); Assert.That(result.UserName, Is.EqualTo("user")); Assert.That(result.Password, Is.EqualTo("password")); }
public void CanGetMinimumConnectionStringValues() { var result = new RavenDbConnectionInfo { ConnectionString = "Url=http://localhost" }; Assert.That(result.ServerAddress, Is.EqualTo("http://localhost")); Assert.That(result.ServerPort, Is.Null); Assert.That(result.DatabaseName, Is.Null); Assert.That(result.UserName, Is.Null); Assert.That(result.Password, Is.Null); }
public void RavenDbConnectionInfoTestExposesExpectedInterfaces() { var result = new RavenDbConnectionInfo(); Assert.That(result, Is.InstanceOf<IDbConnectionInfo>()); }