Another Entlib example: Separate integration tests from unit tests (and learn to know the difference)

My blog has moved. You can view this post at the following address: http://www.osherove.com/blog/2005/4/11/another-entlib-example-separate-integration-tests-from-unit.html
Published Monday, April 11, 2005 5:54 PM by RoyOsherove

Comments

Monday, April 11, 2005 11:37 AM by Paul Speranza

# re: Another Entlib example: Separate integration tests from unit tests (and learn to know the difference)

Apparently they didn't think through somet hings for Oracle. I use prpared statements for dynamic sql, so depending on the database I need to find out what the parameter token is. For Sql server it is '@', for Oracle it is ':'. There is a ParameterToken property from the Database object but it is protected so I can't plug the parameter token into the sql dynamically.

What I am getting at is that they provided support for Oracle but obviously no one tested using Prepared Statements with Oracle. They left an entire concept out of the unit tests which I am sure someone would have caught had they mapped out the feature set properly.
Monday, April 11, 2005 12:13 PM by Paul Speranza

# re: Another Entlib example: Separate integration tests from unit tests (and learn to know the difference)

To be fair to the Ent lib team I did put up a thread on this and Scott replied back that indeed there was no way get the ParameterToken property. It is unclear to me how to use prepared statements with the enterprise library so it is possible that I am missing something here. All in all I do think they did a nice job on the library. I just want to make it clear to Scott and the rest of the team that I wasn't trying to slam them in any way.

Monday, April 11, 2005 12:31 PM by jerrad anderson

# re: Another Entlib example: Separate integration tests from unit tests (and learn to know the difference)

I wrote this library because I needed to modularize my file creation.

http://projectdistributor.net/Projects/Project.aspx?projectId=69

This might help someone to write unit tests that don't rely on hard coded paths.
Sunday, April 17, 2005 12:21 PM by TrackBack

# Testes em aplica