public void Should_UpdateEscalatePlaint()
        {
            AgencyCommunicationRequest communicationRequest = new AgencyCommunicationRequest();

            communicationRequest.UpdateEscalatePlaint((int)Enums.AgencyPlaintStatus.New, (int)Enums.AgencyCommunicationRequestStatus.RequestSent);

            communicationRequest.ShouldNotBeNull();
            communicationRequest.EscalationStatusId.ShouldBe((int)Enums.AgencyCommunicationRequestStatus.RequestSent);
            communicationRequest.EscalationAcceptanceStatusId.ShouldBe((int)Enums.AgencyPlaintStatus.New);
        }
Ejemplo n.º 2
0
        public PlaintRequest EscalatePlaintRequest(string attachmentId, string attachmentName)
        {
            IsEscalation      = true;
            EscalationRequest = new EscalationRequest(0, PlainRequestId, attachmentId, attachmentName);

            AgencyCommunicationRequest.UpdateEscalatePlaint((int)Enums.AgencyPlaintStatus.New, (int)Enums.AgencyCommunicationRequestStatus.RequestSent);
            List <CommunicationAttachmentModel> lst = new List <CommunicationAttachmentModel>();

            lst.Add(new CommunicationAttachmentModel()
            {
                FileNetReferenceId = attachmentId, Name = attachmentName, AttachmentTypeId = (int)Enums.AttachmentType.Escalation
            });
            UpdateAttachments(lst, (int)Enums.AttachmentType.Escalation);
            EntityUpdated();
            return(this);
        }