示例#1
0
        public void Ent_CreateCase_GetCaseNumber_ReturnCaseNumber()
        {
            //arrange
            CaseFiling        caseFilling = new CaseFiling(apiController);
            CaseDetailRequest caseDetail  = new CaseDetailRequest();

            caseDetail.caseType = "4";
            caseDetail.chargebackRefNum.Add("1111423456");
            caseDetail.chargebackRefNum.Add("2222123456");
            caseDetail.customerFilingNumber    = "5482";
            caseDetail.violationCode           = "D.2";
            caseDetail.violationDate           = "2017-11-13";
            caseDetail.disputeAmount           = "200.00";
            caseDetail.currencyCode            = "USD";
            caseDetail.fileAttachment.filename = "test.tif";
            caseDetail.fileAttachment.file     = "sample file";
            caseDetail.filedAgainstIca         = "004321";
            caseDetail.filingAs  = "A";
            caseDetail.filingIca = "001234";
            caseDetail.memo      = "This is a test memo";
            //act
            CaseIdRequestResponse caseNumber = caseFilling.CreateCase(caseDetail);

            //assert
            Assert.AreEqual(caseNumber.caseId, "536092");
        }
示例#2
0
        public void CreateCase_GetCaseNumber_ReturnCaseNumber()
        {
            //arrange
            apiController.Setup(f => f.Create <CaseIdRequestResponse>(It.IsAny <long>(), It.IsAny <String>(), It.IsAny <CaseDetailRequest>()))
            .Returns(new CaseIdRequestResponse()
            {
                caseId = caseId
            });

            CaseFiling caseFilling = new CaseFiling(apiController.Object);
            //act
            CaseIdRequestResponse caseNumber = caseFilling.CreateCase(0, new CaseDetailRequest());

            //assert
            Assert.AreEqual(caseNumber.caseId, caseId);
        }