PrepAway - Latest Free Exam Questions & Answers

Which action should you recommend?

You are an enterprise application developer. You are creating a sales application. You make several changes to a commission object within the sales application. The commission object calculates the monthly sales commissions for the sales force of the company. The sales commissions are calculated based on the following criteria:

The commission object receives the following parameters:
o The ID of the sales person
o The monthly gross sales of the sales person

The commission object calls the data access layer to execute three stored procedures. The commission object calculates the commission by performing operations on the output of the stored procedures.
You need to write a unit test for the commission object. Which action should you recommend?

PrepAway - Latest Free Exam Questions & Answers

A.
Write a test method that instantiates the commission object, passes the ID of the sales person and gross sales as parameters, and verifies the calculations for commission percentage and commission owed.

B.
Write code to call each of the three stored procedures and to verify that they return the correct commission rates.

C.
Test the commission object against an extremely high threshold of connections and executions.

D.
Write additional code to test operability of the commission object against the data access layer that executes the stored procedures.


Leave a Reply