public void CanOpenConnection() { var dcp = new DatabaseConnectionProvider(); using (var c = dcp.GetConnection(connectionString)) { c.Open(); } }
public void CanCreateConnection() { var dcp = new DatabaseConnectionProvider(); var connection = dcp.GetConnection(connectionString); Assert.AreEqual("NpgsqlConnection", connection.GetType().Name); }