コード例 #1
0
        public void removeSharing()
        {
            var req = new DocumentSharingRequest();

            req.sharingDTO       = new SharingDTO();
            req.sharingDTO.DocID = new Guid("58EE74C3-0DFA-4BA9-A8F6-FAC6943DAF61")
            {
            };
            req.sharingDTO.UserId = "*****@*****.**";

            var res = _DocumentSharingDAL.RemoveSharing(req);

            Assert.IsInstanceOf(typeof(DocumentSharingResponseRemoveOK), res);
        }
コード例 #2
0
        public DocumentsharingResponse RemoveSharing(DocumentSharingRequest request)
        {
            DocumentsharingResponse retval = default;

            try
            {
                retval = _dal.RemoveSharing(request);
            }
            catch (Exception e)
            {
                retval = new DocumentSharingResponseDontRemove();
                throw;
            }
            return(retval);
        }