Exam4Training

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.getStandardPricebookId()to get the standard price book I
C . Use @IsTest(SeeAllData=true)and delete the existing standard price book.
D . Use Test.loadData()and a Static Resource to load a standard price book.
E . Use @TestVisibleto allow the test method to see the standard price book.

Answer: A

Latest CRT-450 Dumps Valid Version with 372 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version