public void CreateJobPostDBTest() { //Arrange DbJobPost dbJobPost = new DbJobPost(); Company company = new Company("*****@*****.**", "hellopassword"); company.Id = 1; WorkHours workHours = new WorkHours(); workHours.Id = 1; JobCategory jobCategory = new JobCategory(); jobCategory.Id = 1; string iDate = "05/05/2018"; DateTime oDate = Convert.ToDateTime(iDate); JobPost jobPost = new JobPost(1, "Test job1", "Et job for dig", DateTime.Now, oDate, "Wc Vasker", workHours, "Her", company, jobCategory); //Act bool inserted = dbJobPost.Create(jobPost); //Assert Assert.IsTrue(inserted); }
public void GetJobById() { //Arrange DbJobPost dbJobPost = new DbJobPost(); //Act JobPost jobPost = dbJobPost.Get(1); //Assert Assert.IsNotNull(jobPost); }
public void FindAllJobPost() { //Arrange DbJobPost dbJobPost = new DbJobPost(); //Act List <JobPost> jobPostList = dbJobPost.GetAll(); //Assert Assert.IsTrue(jobPostList.Count > 1); }
public void GetJobById() { //Arrange DbJobPost dbJobPost = new DbJobPost(); //Act JobPost jobPost = dbJobPost.Get(1); //Assert Assert.IsTrue(jobPost != null); }