コード例 #1
0
        public void UpdateJobApplicationInDB()
        {
            //Arrange
            DbJobApplication dbJobApplication = new DbJobApplication();
            Applier          applier          = new Applier
            {
                Id = 2
            };

            JobApplication jobApplication = new JobApplication(1, "noget nyt", "En Beskrivelse", applier);
            //Act
            bool check = dbJobApplication.Update(jobApplication);

            //Assert
            Assert.IsTrue(check);
        }
コード例 #2
0
 /// <summary>
 /// Updates the given JobApplication in the database.
 /// </summary>
 /// <param name="obj"></param>
 public void Update(JobApplication obj)
 {
     dbJobApplication.Update(obj);
 }