Esempio n. 1
0
        public void GetJobById()
        {
            //Arrange
            DbJobPost dbJobPost = new DbJobPost();

            //Act
            JobPost jobPost = dbJobPost.Get(1);

            //Assert
            Assert.IsNotNull(jobPost);
        }
        public void GetJobById()
        {
            //Arrange
            DbJobPost dbJobPost = new DbJobPost();

            //Act
            JobPost jobPost = dbJobPost.Get(1);

            //Assert
            Assert.IsTrue(jobPost != null);
        }
Esempio n. 3
0
 /// <summary>
 /// Returns a single JobPost object from the database by the given id.
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public JobPost Get(int id)
 {
     return(dbJobPost.Get(id));
 }