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

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

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

            return(res);
        }
Beispiel #2
0
 public async Task <IEnumerable <ProductOrder> > AllOrder()
 {
     return(await _groceryServices.AllOrder());
 }