Microsoft Dynamics 365 Business Central Developer — Question 88
You are creating a test codeunit for a company that uses Business Central.
The company requires the following list of choices while posting a sales order:
• Ship
• Invoice
• Ship & Invoice
You must create a test codeunit that automatically selects one of these options.
You need to create the test codeunit.
Which handler should you use?
Answer options
- A. SendNotificationHandler
- B. SessionSettingsHandler
- C. StrMenuHandler
- D. RecallNotificationHandler
Correct answer: C
Explanation
The correct answer is C, StrMenuHandler, as it is specifically designed for handling menu selections, which is necessary for automating the choice of options in posting a sales order. The other options, such as SendNotificationHandler, SessionSettingsHandler, and RecallNotificationHandler, do not relate directly to menu handling and therefore would not be suitable for this task.