Exemple #1
0
        public void Get_InvalidResultCode_When_Null_RequestModel()
        {
            var taskData = _productController.AddBasket(null);

            var result = taskData.Result as BadRequestObjectResult;
            var obj    = result.Value as ApiResultModel;

            Assert.Equal("603", obj.Code.ToString());
        }