Skip to content

Instantly share code, notes, and snippets.

@gashupl
Created July 4, 2019 06:13
Show Gist options
  • Save gashupl/1e00189ade0fcdb260a9d7c31b8ec5f1 to your computer and use it in GitHub Desktop.
Save gashupl/1e00189ade0fcdb260a9d7c31b8ec5f1 to your computer and use it in GitHub Desktop.
class RepositoryFactory
{
private IOrganizationService service
public RepositoryFactory(IOrganizationService service)
{
this.service = service;
}
public OpportunityRepository Get()
{
return new OpportunityRepository(this.service);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment