Ejemplo n.º 1
0
        public void GetCommunities()
        {
            IEnumerable <community> res = com.GetAllAsync().Result;

            int count = res.Count();

            Assert.AreEqual(3, count);
        }
Ejemplo n.º 2
0
        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
            });
        }