public void After_connection_is_opened_status_is_opened() { const DatabaseServer databaseServer = null; ISiqualConnection siqualConnection = new SiqualConnection(databaseServer); siqualConnection.Open(); Assert.IsTrue(siqualConnection.IsOpened); }
public void After_disposing_connection_is_closed() { const DatabaseServer databaseServer = null; ISiqualConnection siqualConnection; using (siqualConnection = new SiqualConnection(databaseServer)) { } Assert.IsFalse(siqualConnection.IsOpened); }
public ISiqualConnection CreateConnectionFor(DatabaseServer server) { SiqualConnection connection = new SiqualConnection(server); //connection.Open(); return connection; }