예제 #1
0
        public void CanReturnCommodityListByType()
        {
            //ACT
            var jsonResult = _commodityController.CommodityListByType(1, 1, "123", 1) as JsonResult;

            //ASSERT
            Assert.NotNull(jsonResult);
            Assert.NotNull(jsonResult.Data);
            Assert.IsNotInstanceOf <EmptyResult>(jsonResult.Data);
            Assert.IsInstanceOf <ArrayList>(jsonResult.Data);
        }