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 SetStateOfExport(StateOfExport stateOfExport) { Guard.ArgumentNotNull(() => stateOfExport, stateOfExport); StateOfExport = stateOfExport; }