>Sounds like you're integration testing, not unit testing.
>
>I would not hold a reference to the database object, but create it as needed.
>
We decided to not add the database reference to the application object, but add both objects (application and database) as references.
We're currently using database reference in the Main class (MiddlewareBase), so we would add new object property to hold the applicaiton object.
If it's not broken, fix it until it is.
My Blog