This method will test the constructor of the Region business object that requires a RegionID, the get routines for each of its properties, the Select command method of the RegionHelper class, and the Select stored procedure in the database.
The Region business object test class is under construction. The CreateTheObject test should be complete.
1. Declare a private void function called ReadTheObject.
All we are checking for here is to see if business object correctly stored the values we gave it when created it. This does that.
This is also a very simple test. All it does is read the properties to see if they contain the values that they should. It verifies that the object was created correctly, and that it can be retrieved from the database. It exercises sections of the Region business object that were not exercised when the object was created, and it tests the select command method and stored procedure.
Previous Step: Build the Object Creation Test
Next Step: Build Object Update Test