Which method allows access to the price book?

A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger.

Which method allows access to the price book?
A . Use Test.loadData ( )and a static resource to load a standard price book
B . Use @TestVisible to allow the test method to see the standard price book.
C . Use Test,getStandardPricebookid ( ) to get the standard price book I
E . Use @IsTest (SeeAllData=True) and delete the existing standard price book

Answer: C

Latest PDI Practice Questions with 191 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments