public void JobPosition_CanBeRetrieved()
        {
            context.JobPositions.Add(new JobPosition {
                Name = "Developer"
            });
            context.SaveChanges();
            var service = new JobPositionService(context);

            var jobPosition = service.GetJobPosition(1);

            Assert.AreEqual(1, jobPosition.Id);
            Assert.AreEqual("Developer", jobPosition.Name);
        }
        public void Advertisement_CanBeRetrieved()
        {
            context.Advertisements.Add(new Advertisement {
                Name = "Advertisement1", Description = "An advertisement for a job.", Active = true, JobPositionId = this.jobPositionId
            });
            context.SaveChanges();
            var service = new AdvertisementService(context);

            var advertisement = service.GetAdvertisement(1);

            Assert.AreEqual(1, advertisement.Id);
            Assert.AreEqual("Advertisement1", advertisement.Name);
        }