Example #1
0
        public async Task <IEnumerable <ProductOrder> > AllOrder()
        {
            //Do code here

            return(await _adminGS.AllOrder());

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

            //Action
            adminservice.Setup(repos => repos.AllOrder());
            var result = await _adminGroceryS.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);
        }