public void UpdateMetadata_NoData()
        {
            string      documentId            = "ADOK-1-1068";
            ArchiveCase archiveCaseController = new ArchiveCase();

            var result = JObject.Parse(archiveCaseController.UpdateCaseDocumentMetadata(documentId, null, _objArchiveModel));

            Assert.AreEqual("No Metadata found to update for " + documentId + ".", result["response"]);
        }
        public void UpdateMetadata_PartialData()
        {
            string      documentId            = "ADOK-1-250";
            ArchiveCase archiveCaseController = new ArchiveCase();
            ArchiveCaseDocumentModel objArchiveCaseDocumentModel = new ArchiveCaseDocumentModel
            {
                Authority       = "Utvalg",
                Category        = "Dom",
                ContradictionId = "d571d19a-8242-4608-8186-6799627865ba",
                DecisionId      = "",
                DocumentStatus  = "",
                Origin          = "Utvalg",
                OwnerId         = "",
                PartyId         = ""
            };

            archiveCaseController.UpdateCaseDocumentMetadata(documentId, objArchiveCaseDocumentModel, _objArchiveModel);
        }
        public void UpdateMetadata_NoDocumentId()
        {
            string      documentId            = string.Empty;
            ArchiveCase archiveCaseController = new ArchiveCase();
            ArchiveCaseDocumentModel objArchiveCaseDocumentModel = new ArchiveCaseDocumentModel
            {
                Authority       = "Utvalg",
                Category        = "Dom",
                ContradictionId = "d571d19a-8242-4608-8186-6799627865ba",
                DecisionId      = "",
                DocumentStatus  = "",
                Origin          = "Utvalg",
                OwnerId         = "",
                PartyId         = ""
            };
            var result = JObject.Parse(archiveCaseController.UpdateCaseDocumentMetadata(documentId, objArchiveCaseDocumentModel, _objArchiveModel));

            Assert.AreEqual("Document ID not found.", result["response"]);
        }