Microsoft Dynamics 365 Business Central Developer — Question 39

You must simulate the user interaction of selecting a posting option. The options must include:

• Ship
• Invoice
• Ship & Invoice

You need to create a test codeunit to run the test.

What should you use?

Answer options

Correct answer: B

Explanation

The correct answer is B, as a Handler method is essential for simulating user interactions and managing events efficiently. Option A, Normal attribute, does not provide the necessary functionality for handling user selections, while Option C, Test attribute, is typically used for marking methods as test cases, not for simulating interactions.