Esempio n. 1
0
        public void testGetAllActivityAsync()
        {
            int testUserId         = 39;
            int expectedListLength = 3;

            Assert.AreEqual(expectedListLength, restAPIService.getAllActivityAsnyc(testUserId).Result.Count);
        }
 public async Task <List <ActivityViewModel> > getAllActivity(int userId)    // calling on rest api to return a list of activity view model
 {
     return(await restAPIService.getAllActivityAsnyc(userId));
 }