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 ApplyStudentToJob(Student student, Job job) { student.Apply(job); unitOfWork.Update<Job>(job); unitOfWork.Commit(); }