Пример #1
0
        public void GetProject_TheJointTableInDB_Todo()
        {
            //Arrange
            Todo testTodo = new Todo("Add file", "In Progress");

            testTodo.Save();
            DateTime newDateTime = new DateTime(1234, 12, 11);
            Project  testProject = new Project("Planner", "content", newDateTime, "Done", 1);

            testProject.Save();
            testTodo.AddProject(testProject);

            //Act
            Project actualProject = testTodo.GetProject();

            //Assert
            Assert.AreEqual(testProject, actualProject);
        }