コード例 #1
0
        public void GetConnectionTest()
        {
            IDbConnection con = _dbAccess.GetConnection();

            Assert.IsNotNull(con, "The connection string created was NULL.");
            Assert.AreEqual(_connectionString, con.ConnectionString, "Unexpected connection string.");
        }
コード例 #2
0
 public string ShowDatabaseConnection()
 {
     return(_dbAccess.GetConnection());
 }