Write test class for trigger?-SimpleExample

How to Write test class for trigger: Here is the example to write a unit test method for a simple Apex Trigger. Following trigger is executed whenever an account is created and creates sharing to the manager to that record. Apex Trigger Code: trigger accountAfterInsert on Account (after insert) { string managerId= [Select Id, ManagerId FROM … Continue reading Write test class for trigger?-SimpleExample