Hi,
I am trying to writing test case to test my BO logic using MbUnit/NUnit.
Currently, I hit DataLayerException as below. May I know how to run test on my BO successully? Do you have any test project template?
Thank you
Message: An error occurred while creating a new DataLayer for the business object.
Type: MicroFour.StrataFrame.Data.DataLayerException
Source: MicroFour StrataFrame Business
TargetSite: MicroFour.StrataFrame.Data.DataLayer get__DataLayer()
HelpLink: null
Stack: at MicroFour.StrataFrame.Business.BusinessLayer.get__DataLayer()
at MicroFour.StrataFrame.Business.BusinessLayer.GetDataTable(DbCommand CommandToExecute)
at JK.Inventory.Product.BusinessObject.ItemPricesBO.GetDataTableByItemID(Guid ItemID, DateTime AsAtDate) in F:\Projects\Inventory\InventoryBusinessObject\Product\ItemPricesBO.cs:line 85
at JK.Inventory.Product.BusinessObject.ItemPricesBO.GetPrice(Guid ItemID, DateTime AsAtDate) in F:\Projects\Inventory\InventoryBusinessObject\Product\ItemPricesBO.cs:line 63
at JK.Inventory.Product.BusinessObject.ItemPricesBO.GetPrice(Guid ItemID) in F:\Projects\Inventory\InventoryBusinessObject\Product\ItemPricesBO.cs:line 56
at TestItemPricesBO.TestItemPricesBO.TestGetPriceByItemID() in F:\Projects\Inventory\Test\TestItemPricesBO\TestItemPricesBO\TestItemPricesBO\TestItemPricesBO.cs:line 26