public void GetAllCommunities() { var res = communityService.GetAllAsync().Result; Assert.IsTrue(res.Success); Assert.AreEqual(3, res.Result.Count()); }
public async Task <ActionResult> Search() { //fazer verificação CommunityService service = CommunityService.GetInstance(); var result = await service.GetAllAsync(); return(View(result.Result)); }
public async Task <JsonResult> GetCommunityList() { var list = await _communityService.GetAllAsync(); return(Success(list)); }