Skip to content

Instantly share code, notes, and snippets.

@jimmydivvy
Created November 29, 2011 09:42
Show Gist options
  • Save jimmydivvy/1404195 to your computer and use it in GitHub Desktop.
Save jimmydivvy/1404195 to your computer and use it in GitHub Desktop.
Test Create Sales Order
class TestCreateSalesOrder {
private static testmethod void testCreateSalesOrder(){
Contact c = new Contact(LastName='Test');
insert c;
biz3__Order__c order = new biz3__Order__c( Name='Test', biz3__Contact__c = c.Id );
insert order;
biz3__Sales_Order__c[] sales = [SELECT Id FROM biz3__Sales_Order__c WHERE biz3__Order__c = :order.Id];
System.assertEquals( 1, sales.size() );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment