Exam MB-820 Topic 1 Question 36 Discussion

Actual exam question for Microsoft's MB-820 exam
Question #: 36
Topic #: 1
You are developing a test application to test the posting process of a sales order. You must provide the following implementation:
* Specify the value of post options (dialog: Ship, Invoice, Ship & Invoice) as Invoice.
* Perform calculations and values checking.
You need to complete the development of the test codeunit.
Which methods should you use? To answer, move the appropriate methods to the correct implementation.
You may use each method once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.

Suggested Answer:


Explanation:
Specify the value of the post options as Invoice:
* Test
Perform calculations and values checking:
* Handler
In the context of Microsoft Dynamics 365 Business Central testing, the 'Test' attribute is used to mark a method as a test method. This is where you would specify the action or the behavior you're testing - in this case, setting the post options as Invoice. It's within these test methods that you would simulate setting the posting option to "Invoice" programmatically.
For performing calculations and checking values, you would use 'Handler' methods to handle specific business events or conditions that occur within the system, such as before or after posting a document. These handlers can ensure that calculations are done correctly and that all validation checks pass before the document is posted.
The 'Normal' method would be a standard method that could be involved in the posting process, ensuring that all business logic is correctly applied and that the calculations and value checks are as expected.
In a test codeunit, you would typically have test methods that call these handler and normal methods to verify the business logic in various scenarios, such as posting with different options or checking the results of calculations under different conditions.

by Lou at Mar 07, 2025, 01:20 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어