O'Reilly logo

Microsoft Dynamics AX 2012 R3 Reporting Cookbook by Deepak Agarwal, Chhavi Aggarwal, Kamalakannan Elangovan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a unit test class for a contract class

To write the unit test class of a contract class, first of all we need to create a new contract class and then test the logic of that contract class using the unit test class. In this recipe, we will use an existing contract class; we will write the unit test class of that existing contract class. As explained in earlier chapters, a contract class consists of parm methods which are used to set or get the variables. A unit test class extends the SysTestCase class.

We can also check the code coverage of business logic in Microsoft Dynamics AX R3 using a unit test parameter.

Getting ready

To work through this recipe, you will require AX 2012 R2 or AX 2012 R3 rich client with developer permission. You need ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required