Пример #1
0
        // GET: api/UserBadges
        public IEnumerable <UserBadgeDto> GetUserBadges()
        {
            var ubs    = ubsvc.GetUserBadges();
            var ubDtos = ubs.Select(t => UserBadgeDto.FromUserBadge(t));

            return(ubDtos);
        }
Пример #2
0
        public void GetAllUserBadges()
        {
            var userBadges = _userBadgeService.GetUserBadges();

            CollectionAssert.AreEqual(userBadges.ToArray(), _userBadges.ToArray());
        }
Пример #3
0
 // GET api/UserBadge
 public IList <UserBadge> GetActivities()
 {
     return(_userBadgeService.GetUserBadges());
 }