public void ShouldCreateInstance()
        {
            // arrange
            var employee = new Employee(101, "John Doe");

            // act
            var result = new SkillEvaluator(employee);

            // assert
            Assert.Equal(employee, result.Employee);
            Assert.NotNull(result.SkillGoals);
            Assert.NotNull(result.TrackingPoints);
        }
示例#2
0
        // constructors
        public Employee(uint number, string name)
            : base()
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentNullException(nameof(name));
            }

            Number         = number;
            Name           = name;
            Profile        = new PersonalProfile(this);
            Evaluatee      = new Evaluatee(this);
            SkillEvaluator = new SkillEvaluator(this);
        }