public void shouldRegisterStudent()
 {
     Student bob = new Student("Bob");
     Job job = new Job(null, "A job");
     job.Register(bob);
     Assert.IsTrue(job.registeredStudents.Contains(bob));
 }
 public void shouldRegisterInAJobPropsition()
 {
     Job job = new Job(null, "Cyclomatic Dynamics");
     Student student = new Student("Bob");
     student.Apply(job);
     Assert.IsTrue(job.registeredStudents.Contains(student));
 }
 public void Apply(Job job)
 {
     job.Register(this);
 }
 public void RemoveJob(Job job)
 {
     unitOfWork.Remove<Job>(job);
     unitOfWork.Commit();
 }
 public void ApplyStudentToJob(Student student, Job job)
 {
     student.Apply(job);
     unitOfWork.Update<Job>(job);
     unitOfWork.Commit();
 }