public IStateNotifier CreateStateNotifierImpl(IDSFDataObject dsfDataObject) { var stateNotifier = new StateNotifier(); if (dsfDataObject.Settings.EnableDetailedLogging) { _logger = new StateAuditLogger(new WebSocketFactory()); stateNotifier.Subscribe(_logger.NewStateListener(dsfDataObject)); } return(stateNotifier); }
void TestAuditSetupWithAssignedInputs(Guid resourceId, string workflowName, out IStateAuditLogger auditStateLogger, out Mock <IDev2Activity> activity, IWebSocketPool webSocketPool) { GetMockedDataObject(resourceId, workflowName, out activity, out Mock <IDSFDataObject> mockedDataObject); auditStateLogger = GetIAuditStateLogger(webSocketPool); }