Hi,
Our company is focussed on implementing high quality software so we write a lot of unittests.
Recentely we migrated to MS dynamics 2012 version and started to develop in X++, so we have to setup a framework for mocking.
Till now we were doing great on unittest for classes.
Atm im stuck at a test that uses the IsNewRecord from a Table Object and i need a mock or fake object from the tabel to adjust the result from IsNewRecord().
It seems making a class en extend from the Table is no option.
anyone any idea how to solve this ?
Greetz,
Kurt
*This post is locked for comments
I have the same question (0)That's a good question and I gave it some thought when I worked with AX 2012. I thought that maybe I could do it at CIL level, where tables are just classes like anywhere else, but I ended up doing such ugly hacks that I decided it's not a good way and gave it up. I'm interested in what others have managed.
Syed Haris Shah
9
Mea_
4
KP-31070522-0
3