public static InProgressDocumentDto ToDto(this InProgressDocument inProgressDocument) { if (inProgressDocument == null) { throw new ArgumentNullException(nameof(inProgressDocument)); } return(new InProgressDocumentDto { Document = new GetDocumentDto { Id = inProgressDocument.Id.GetClientId(), FileName = inProgressDocument.FileName }, State = inProgressDocument.State, ErrorInfo = inProgressDocument.ErrorInfo, LastStatusUpdateTime = inProgressDocument.LastStatusUpdateTime }); }
public InProgressDocumentStateChanged(InProgressDocument inProgressDocument) { InProgressDocument = inProgressDocument ?? throw new ArgumentNullException(nameof(inProgressDocument)); }