public void CreateLiveWatchTestExists() { var request = new CreateLiveWatchDocRequest { DocId = "3F558898BEDE55D2F6F2C454AA6D2774", UserId = "*****@*****.**" }; var ret = _dal.CreateLiveWatchDoc(request); Assert.AreEqual(1, ret.Tables.Count); }
public Response CreateLiveWatchDoc(CreateLiveWatchDocRequest request) { try { _dal.CreateLiveWatchDoc(request); CreateLiveWatchDocResponseOk ret = new CreateLiveWatchDocResponseOk { UserId = request.UserId, DocId = request.DocId }; return(ret); } catch (Exception ex) { return(new AppResponseError(ex.Message)); } }