Ejemplo n.º 1
0
        public void Test3_FindProject()
        {
            DateTime Date       = new DateTime(2016, 10, 3);
            Project  newProject = new Project("ProjectName", Date);

            newProject.Save();
            Project foundProject = Project.Find(newProject.GetId());

            Assert.Equal(newProject, foundProject);
        }
Ejemplo n.º 2
0
        public void Test5_UpdateOneProject()
        {
            DateTime Date        = new DateTime(2016, 10, 3);
            Project  testProject = new Project("ProjectName", Date);

            testProject.Save();

            DateTime Date2      = new DateTime(2017, 10, 3);
            Project  newProject = new Project("NewProjectName", Date2, testProject.GetId());

            testProject.Update(newProject);

            Assert.Equal(testProject, newProject);
        }