public CrmWorkflowMock() { _serviceMock = new Mock <IOrganizationService>(); _factoryMock = new Mock <IOrganizationServiceFactory>(); Mock <ITracingService> tracingServiceMock = new Mock <ITracingService>(); _workflowContextMock = new Mock <IWorkflowContext>(); _serviceProviderMock = new Mock <IServiceProvider>(); WorkflowContext = new FakeWorkflowContext(); tracingServiceMock = Trace.CreateTracingService(tracingServiceMock); FakeTracingService = tracingServiceMock.Object; }
public CrmPluginMock() { _serviceMock = new Mock <IOrganizationService>(); _factoryMock = new Mock <IOrganizationServiceFactory>(); Mock <ITracingService> tracingServiceMock = new Mock <ITracingService>(); _pluginContextMock = new Mock <IPluginExecutionContext>(); _serviceProviderMock = new Mock <IServiceProvider>(); PluginExecutionContext = new FakePluginExecutionContext(); tracingServiceMock = Trace.CreateTracingService(tracingServiceMock); FakeTracingService = tracingServiceMock.Object; }