if have a class called model
I am trying to test this class with the code below, but I get a null exception error.
Jayco.MRP.BusinessObjects.Model mdl = new Jayco.MRP.BusinessObjects.Model();
mdl.GetAllData();
Below is the stack trace
at OakLeaf.MM.Main.mmAppBase.get_DatabaseMgr()
at OakLeaf.MM.Main.Business.mmBusinessObject.GetDataAccessObject(String databaseKey)
at OakLeaf.MM.Main.Business.mmBusinessObject.GetDataAccessObject()
at OakLeaf.MM.Main.Business.mmBusinessObject.GetAllData()
at _Default.Page_Load(Object sender, EventArgs e) in c:\cyberlogic\Jayco\JaycoMRP\JaycoMRP_Website\Default.aspx.cs:line 18
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Fred Besterwitch, MCP
The harder you work. The luckier you get.