public async Task <bool> TestFor_GetAllProduct()
        {
            //Arrange
            var res = false;

            //Action
            groceryservice.Setup(repos => repos.GetAllProduct());
            var result = await _groceryS.GetAllProduct();

            //Assertion
            if (result != null)
            {
                res = true;
            }
            //final result displaying in text file
            await File.AppendAllTextAsync("../../../../output_revised.txt", "TestFor_GetAllProduct=" + res + "\n");

            return(res);
        }
Пример #2
0
 public async Task <IEnumerable <Product> > AllProduct()
 {
     return(await _groceryServices.GetAllProduct());
 }