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); }
// 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); }