C# Class FakeService, DynamicsNode

Fake CRM connection for testing purposes
Inheritance: IOrganizationService
Mostrar archivo Open project: crisfervil/DynamicsNode Class Usage Examples

Public Methods

Method Description
Associate ( string entityName, System.Guid entityId, Relationship, relationship, EntityReferenceCollection relatedEntities ) : void
Create ( Entity entity ) : System.Guid
Delete ( string entityName, System.Guid id ) : void
Disassociate ( string entityName, System.Guid entityId, Relationship, relationship, EntityReferenceCollection relatedEntities ) : void
Execute ( OrganizationRequest request ) : OrganizationResponse
FakeService ( string connectionString ) : Microsoft.Crm.Sdk.Messages
Retrieve ( string entityName, System.Guid id, ColumnSet columnSet ) : Entity
RetrieveMultiple ( QueryBase, query ) : EntityCollection
Update ( Entity entity ) : void

Method Details

Associate() public method

public Associate ( string entityName, System.Guid entityId, Relationship, relationship, EntityReferenceCollection relatedEntities ) : void
entityName string
entityId System.Guid
relationship Relationship,
relatedEntities EntityReferenceCollection
return void

Create() public method

public Create ( Entity entity ) : System.Guid
entity Entity
return System.Guid

Delete() public method

public Delete ( string entityName, System.Guid id ) : void
entityName string
id System.Guid
return void

Disassociate() public method

public Disassociate ( string entityName, System.Guid entityId, Relationship, relationship, EntityReferenceCollection relatedEntities ) : void
entityName string
entityId System.Guid
relationship Relationship,
relatedEntities EntityReferenceCollection
return void

Execute() public method

public Execute ( OrganizationRequest request ) : OrganizationResponse
request OrganizationRequest
return OrganizationResponse

FakeService() public method

public FakeService ( string connectionString ) : Microsoft.Crm.Sdk.Messages
connectionString string
return Microsoft.Crm.Sdk.Messages

Retrieve() public method

public Retrieve ( string entityName, System.Guid id, ColumnSet columnSet ) : Entity
entityName string
id System.Guid
columnSet ColumnSet
return Entity

RetrieveMultiple() public method

public RetrieveMultiple ( QueryBase, query ) : EntityCollection
query QueryBase,
return EntityCollection

Update() public method

public Update ( Entity entity ) : void
entity Entity
return void