public void GetCommunities() { IEnumerable <community> res = com.GetAllAsync().Result; int count = res.Count(); Assert.AreEqual(3, count); }
public async Task <OperationResult <IEnumerable <community> > > GetAllAsync() { IEnumerable <community> communities = await communityRepo.GetAllAsync(); return(new OperationResult <IEnumerable <community> >() { Success = true, Message = Messages.OPERATION_SUCCESS, Result = communities }); }