>OK. That makes sense but I have tried this and I am still getting an error and I believe it is because the database connection has not been established as I am getting an object null reference.
>
You need to initialize the framework first. I don't have the code handy here at home but take a look at a MM.NET WinForm app, inside of the startup program - there is some code there that starts up the App object. There is also a help topic about using MM.NET with NUnit, which is basically the same idea.
The code you need to use is something like:
public static OakLeaf.MM.Main.mmAppBase App;
App.Factory = new AppBase();