Where is the best place to put a flag that switches the DataSourceKey from the actual database ("Crucible" in this case) to a testing database ("CrucibleTesting").
I tried placing it in the Constructor of the Base Business Object like so ... but it is still routing to the production database:
public BaseBusinessLayer():base()
{
InitializeComponent();
if (CommonCalls.AppConfig.IsTesting)
{
DataSourceKey = "CrucibleTesting";
}
}