public void TestGetUserRole() { var userRole = _userRoleRepo.Create(RandomUserRole()).Result; _userRoleRepo.Create(RandomUserRole()); _userRoleRepo.Create(RandomUserRole()); var action = _userRoleController.GetUserRole(_projId, userRole.Id).Result; Assert.IsInstanceOf <ObjectResult>(action); var foundUserRole = ((ObjectResult)action).Value as UserRole; Assert.AreEqual(userRole, foundUserRole); }