public async Task <IHttpActionResult> GetUserBadge(long id) { UserBadge userBadge = await _userBadgeService.FindUserBadge(id); if (userBadge == null) { return(NotFound()); } return(Ok(userBadge)); }
public void GetUserBadgeById() { long id = 2; var userBadge = _userBadgeService.FindUserBadge(id); Assert.AreEqual(userBadge.Result, _userBadges[(int)id]); }