コード例 #1
0
        public void BaseDbConnection_BadConnectionString()
        {
            // Arrange
            BaseDbConnection obj = new BaseDbConnection(TEST_BAD_CONNECTION_STRING);

            // Act
            var result = obj.GetDatabaseConnection();
        }
コード例 #2
0
        public void BaseDbConnection_IDbConnectionGetsConnectionString()
        {
            // Arrange
            BaseDbConnection obj = new BaseDbConnection(TEST_GOOD_CONNECTION_STRING);

            // Act
            var result = obj.GetDatabaseConnection();

            // Assert
            Assert.AreEqual(TEST_GOOD_CONNECTION_STRING, result.ConnectionString);
        }
コード例 #3
0
 public void BaseDbConnection_ConstructorParamNull()
 {
     // Arrange / Act / Assert
     BaseDbConnection obj = new BaseDbConnection("");
 }