예제 #1
0
        public void GetBestSkill_Flow_Skill()
        {
            var skill = new Skill
            {
                Id = 1
            };

            var user = new User
            {
                UserSkills = new List <UserSkill>
                {
                    new UserSkill
                    {
                        Ratings = new List <Rating>
                        {
                            new Rating {
                                Mark = 8.0
                            }
                        },
                        Skill = skill
                    }
                }
            };

            var result = UserExtension.GetBestSkill(user);

            Assert.AreEqual(skill, result);
        }