public void shouldCreateAJob()
 {
     Company company = new Company("Cyclomatic Dynamics");
     string jobName = "Cloud Manager";
     Job job = company.CreateJob(jobName);
     Assert.AreEqual(jobName, job.Name);
 }
 public ActionResult AddCompanyForm(Company company, HttpPostedFileBase file)
 {
     NameValueCollection postArgs = Request.Form;
     if (!ModelState.IsValid)
     {
         BlobStorageService storage = new BlobStorageService();
         company.LogoPictureUrl = storage.Upload(file);
         companyService.AddCompany(company, company.PasswordHash);
         return View(company);
     }
     return RedirectToAction("DisplayCompanyProfil");
 }
 public void SetUp()
 {
     company = new Company
     {
     Name = "Hp",
     Email = "*****@*****.**",
     Keywords = keywords,
     CreationDate = new DateTime(1980, 10, 10),
     ActivitySectorName = ActivitySectorEnum.Software_engeneering,
     Address = "36 Terry Street",
     CompanySize = CompanySizeEnum.small,
     AcceptSpontanousApplication = false
     };
     unitOfWork = new Mock<IUnitOfWork>();
     service = new CompanyService(unitOfWork.Object);
 }
 public ActionResult SearchJob(Company company)
 {
     var jobs = jobService.ViewOwnJobs(company);
     return View(jobs);
 }
 public Job(Company company, string Name)
 {
     registeredStudents = new List<Student>();
     this.Name = Name;
     this.company = company;
 }
 public IList<Job> ViewOwnJobs(Company company1)
 {
     return unitOfWork.FindMany<Job>(j => j.company.Equals(company1));
 }