StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Issues
»
Testing BO using MbUnit/NUnit
Testing BO using MbUnit/NUnit
Post Reply
Like
0
Testing BO using MbUnit/NUnit
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Chan
Chan
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 533,
Visits: 2K
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
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Testing BO using MbUnit/NUnit
Chan
-
17 Years Ago
There is not a test template as this would really change from each...
Trent L. Taylor
-
17 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search