Add testing for validation

This commit is contained in:
2025-12-14 11:08:04 -05:00
parent 73ad730b38
commit c77d2117cd
8 changed files with 1713 additions and 5 deletions
+3 -1
View File
@@ -21,10 +21,12 @@ public class TeamBuilder
return this;
}
public TeamBuilder WithStudent(Student student)
public TeamBuilder WithStudent(Student student, bool isCaptain = false)
{
if (!_students.Contains(student))
_students.Add(student);
if (isCaptain)
_captain = student;
return this;
}