public TransportRoute(Guid importNotificationId, StateOfExport stateOfExport, StateOfImport stateOfImport) { Guard.ArgumentNotDefaultValue(() => importNotificationId, importNotificationId); Guard.ArgumentNotNull(() => stateOfExport, stateOfExport); Guard.ArgumentNotNull(() => stateOfImport, stateOfImport); ImportNotificationId = importNotificationId; StateOfExport = stateOfExport; StateOfImport = stateOfImport; }
public TransportRoute(Guid importNotificationId, StateOfExport stateOfExport, StateOfImport stateOfImport) { Guard.ArgumentNotDefaultValue(() => importNotificationId, importNotificationId); Guard.ArgumentNotNull(() => stateOfExport, stateOfExport); Guard.ArgumentNotNull(() => stateOfImport, stateOfImport); ImportNotificationId = importNotificationId; StateOfExport = stateOfExport; StateOfImport = stateOfImport; }
public void SetStateOfImport(StateOfImport stateOfImport) { Guard.ArgumentNotNull(() => stateOfImport, stateOfImport); StateOfImport = stateOfImport; }