Exemplo n.º 1
0
        public void CheckNullSearchCodeTests()
        {
            // Arrange
            CatalogueBusiness business = new CatalogueBusiness();
            // Act
            List <FPT_SP_CATA_GET_DETAILINFOR_OF_ITEM_Result> result = business.SearchCode("", "", "");

            // Assert
            Assert.AreEqual(0, result.Count());
        }
Exemplo n.º 2
0
        public void CheckSearchCodeByCopyNumberTests()
        {
            // Arrange
            CatalogueBusiness business = new CatalogueBusiness();
            // Act
            List <FPT_SP_CATA_GET_DETAILINFOR_OF_ITEM_Result> result = business.SearchCode("", "TK/DNCA000198", "");

            // Assert
            Assert.AreEqual(21, result.Count());
        }
Exemplo n.º 3
0
        public JsonResult SearchCode(string strCode, string strCN, string strTT)
        {
            List <FPT_SP_CATA_GET_DETAILINFOR_OF_ITEM_Result> inforList = catalogueBusiness.SearchCode(strCode, strCN, strTT);

            return(Json(inforList, JsonRequestBehavior.AllowGet));
        }