/// <summary> /// Initialises the import. /// </summary> /// <param name="transformId">The transform id.</param> /// <param name="iterator">The transaction iterator object.</param> /// <param name="updateOperation">The update operation for the import.</param> /// <param name="errorAction">The error action.</param> /// <param name="wrapper">The wrapper object.</param> public void Initialise(string transformId, TransactionIterator iterator, eERPUpdateOperation updateOperation, eTransformErrorAction errorAction, ImportHelper wrapper, SystemConnectorDTO system, ITransformAuditController auditController) { _transformId = transformId; _iterator = iterator; _updateOp = updateOperation; _errAction = errorAction; _wrapper = wrapper; _system = system; _auditController = auditController; }
/// <summary> /// Initialises the import. /// </summary> /// <param name="transformId">The transform id.</param> /// <param name="iterator">The transaction iterator object.</param> /// <param name="updateOperation">The update operation for the import.</param> /// <param name="errorAction">The error action.</param> /// <param name="helper">The wrapper object.</param> public void Initialise(string transformId, TransactionIterator iterator, eERPUpdateOperation updateOperation, eTransformErrorAction errorAction, ImportHelper helper, SystemConnectorDTO systemConnector, ITransformAuditController auditController) { _transformId = transformId; _iterator = iterator; _updateOp = updateOperation; _errAction = errorAction; _wrapper = helper; _systemConnector = systemConnector; _auditController = auditController; _client = new Client(systemConnector); _validStatus = null; // _client.GetValidOrderStatuses(); }