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

Unit testing business logic

Debugging can be a time-consuming task as it is required to re-deploy the reports for every change that is made. An alternate way to reduce this cycle and make it easier to test is by creating unit test cases. Visual Studio has handy tools that can create a unit testing project. This recipe will implement unit testing for the drill-through action implemented in the Adding a URL drill through action in reports recipe.

How to do it…

  1. Select the DrillVoucher method in the business logic class. Right-click and select Create Unit Tests.
  2. A Create Unit Tests dialog will appear with the DrillVoucher method selected by default. If additional methods are present, check them and click on OK.

    This will create a unit test project and ...

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