public void Initialize() { trace = A.Fake <ITracingService>(); service = A.Fake <IOrganizationService>(); entityMergeFactory = A.Fake <IEntityMergeFactory>(); pluginExecutionContext = A.Fake <IPluginExecutionContext>(); entityCacheMessageOutcomeService = new EntityCacheMessageOutcomeService(trace, service, entityMergeFactory); entityMerge = A.Fake <EntityMerge>(); }
public EntityCacheMessageOutcomeService(ITracingService trace, IOrganizationService service, IEntityMergeFactory entityMergeFactory) { if (trace == null) { throw new ArgumentNullException(nameof(trace)); } this.trace = trace; if (service == null) { this.trace.Trace("Organization service is null"); throw new ArgumentNullException(nameof(service)); } this.service = service; this.entityMergeFactory = entityMergeFactory; }