public void GetAll_Sucessfull() { ProductBiz productBiz = new ProductBiz(_mockUnit.Object); var allPRoducts = productBiz.GetAllAsync(); Assert.NotNull(allPRoducts); Assert.IsTrue(allPRoducts.Result.Count == GetAllProduct().Count); }
/* * Calcellation Token is */ public async Task <List <Product> > Handle(Query request, CancellationToken cancellationToken) { var result = await _productBiz.GetAllAsync(); return(result); }