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 ActionResult AddStudent(Student student) { if (ModelState.IsValid) { // // string url = CloudBlobStorage.upload(HttpFileStream); // student.Videourl = url; //service.Add(student, password); return View(student); } else { return View(student); } }
public void Register(Student student) { registeredStudents.Add(student); }
public void ModifyStudent(Student student) { unitOfWork.Update<Student>(student); unitOfWork.Commit(); }
public void ApplyStudentToJob(Student student, Job job) { student.Apply(job); unitOfWork.Update<Job>(job); unitOfWork.Commit(); }
public void AddStudent(Student student, string password) { student.PasswordHash = HashUtil.SHA1Hash(password); unitOfWork.Add<Student>(student); unitOfWork.Commit(); }