This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IsTest | |
private with sharing class TestPricebook { | |
@IsTest private static void testPricebook() | |
{ | |
System.assertEquals(0, [select Id from Pricebook2 where IsStandard = true].size()); | |
Pricebook2 pb = (Pricebook2) JSON.deserialize('{"Name":"Standard", "IsStandard":"true"}', Pricebook2.class); | |
System.assertEquals(true, pb.IsStandard); | |
insert pb; | |
System.assertEquals(1, [select Id from Pricebook2 where IsStandard = true].size()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class Opportunities extends fflib_SObjectDomain | |
{ | |
public Opportunities(List<Opportunity> sObjectList) | |
{ | |
// Domain classes are initialised with lists to enforce bulkification throughout | |
super(sObjectList); | |
} | |
public override void onApplyDefaults() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class OpportunitiesSelector extends fflib_SObjectSelector | |
{ | |
public List<Schema.SObjectField> getSObjectFieldList() | |
{ | |
return new List<Schema.SObjectField> { | |
Opportunity.AccountId, | |
Opportunity.Amount, | |
Opportunity.CloseDate, | |
Opportunity.Description, | |
Opportunity.ExpectedRevenue, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<project name="ev3" default="clean" basedir="."> | |
<!-- DEVELOPMENT SECTION --> | |
<property name="environment" value="EV3" /> | |
<property name="project" value="ev3force"/> | |
<property name="version" value="0.1"/> | |
<property name="base.dir" value="." /> | |
<property name="src" location="src"/> | |
<property name="lib" location="${base.dir}/lib" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- UPS XAV Service WSDL Release Date Dec 29, 2007 --> | |
<!-- Copyright 2007-2008 United Parcel Service of America, Inc. All rights reserved. --> | |
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:error="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:xav="http://www.ups.com/XMLSchema/XOLTWS/xav/v1.0" xmlns:tns="http://www.ups.com/WSDL/XOLTWS/XAV/v1.0" targetNamespace="http://www.ups.com/WSDL/XOLTWS/XAV/v1.0"> | |
<wsdl:types> | |
<!-- This schema defines the UPS Security header used for authorization purposes --> | |
<xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | |
<xsd:element name="UPSSecurity"> | |
<xsd:complexType> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"RecordSetBundles": [ | |
{ | |
"Records": [ | |
{ | |
"attributes": { | |
"type": "ObjectA__c", | |
"url": "/services/data/v26.0/sobjects/ObjectA__c/a00d0000007kUmsAAE" | |
}, | |
"CreatedDate": "2012-11-19T18:32:50.000+0000", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeClassA | |
{ | |
public static void someMethod() | |
{ | |
SomeClassB.someMethodB(); | |
someOtherMethod(); | |
} | |
public static void someOtherMethod() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class SessionController { | |
public List<Session__c> lstSessions {get;set;} | |
public SessionController() | |
{ | |
lstSessions = [select Id, Session_Status__c, GL_Department__c, Quantity__c, Unit_Cost__c from Session__c]; | |
} | |
public PageReference createNewSession() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global class myClass | |
{ | |
global class wrapperClass | |
{ | |
public String name {get; set;} | |
public Account account {get; set;} | |
public wrapperClass() | |
{ | |
account = new Account(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestA { | |
public TestA() | |
{ | |
} | |
public class TestB | |
{ | |
public Integer doSomething() | |
{ | |
Integer x = 1; |
OlderNewer