public void Ent_UpdateCase_GetCaseNumber_ReturnCaseNumber() { //arrange CaseFiling caseFilling = new CaseFiling(apiController); CaseDetailRequest caseDetail = new CaseDetailRequest(); caseDetail.fileAttachment.filename = "test.tif"; caseDetail.fileAttachment.file = "sample file"; caseDetail.memo = "This is a test memo"; caseDetail.action = "REJECT"; //act CaseIdRequestResponse caseNumber = caseFilling.UpdateCase(caseId, caseDetail); //assert Assert.AreEqual(caseNumber.caseId, "536092"); }
public void UpdateCase_GetCaseNumber_ReturnCaseNumber() { //arrange apiController.Setup(f => f.Update <CaseIdRequestResponse>(It.IsAny <long>(), It.IsAny <String>(), It.IsAny <Dictionary <String, String> >(), It.IsAny <CaseDetailRequest>())) .Returns(new CaseIdRequestResponse { caseId = caseId }); //act CaseFiling caseFilling = new CaseFiling(apiController.Object); CaseIdRequestResponse caseNumber = caseFilling.UpdateCase(0, caseId, new CaseDetailRequest()); //assert Assert.AreEqual(caseNumber.caseId, "536092"); }