public void UnitTest4(int page) { var ActualResult = _productBiz.ReadMultipleProduct(page, 50, null); Assert.NotNull(ActualResult); Assert.True(ActualResult.StatusCode == 400); Assert.NotNull(ActualResult.ErrorList); Assert.Null(ActualResult.Products); Assert.True(ActualResult.ErrorList.Count > 0); }
public ActionResult <BulkProductResponse> Get(long?categoryId, int page = 1, int pageSize = 50) { BulkProductResponse response = _productBiz.ReadMultipleProduct(page, pageSize, categoryId); return(Ok(response)); }