public static int AskForTheProject()
        {
            ProjectRepository projectRepository = new ProjectRepository();

            Project project = new Project();
            project.name = projectName;
            project.deadLine = DateTime.Now.Add(TimeSpan.Parse(periodOfExecution));

            projectRepository.Add(project);

            return projectRepository.GetAll().Last().id;
        }
        public void ProjectRepositoryTest()
        {
            ProjectRepository repository = new ProjectRepository();
            DateTime time = DateTime.MinValue;
            Project expectedProject = new Project(repository.GetAll().Count() + 1, "projectsomeproject", time);

            repository.Add(expectedProject);

            Project realProject = repository.GetItem(expectedProject.id);

            Assert.AreEqual(expectedProject, realProject);

            repository.Delete(expectedProject);

            realProject = repository.GetItem(expectedProject.id);

            Assert.AreEqual(null, realProject);
        }
        public void ProjectRepositoryTest()
        {
            ProjectRepository repository = new ProjectRepository();
            DateTime time = DateTime.MinValue;
            Project expectedProject = new Project { name = "projectsomeproject", deadLine = time };

            repository.Add(expectedProject);

            Project realProject = repository.GetAll().Last();

            Assert.AreEqual(expectedProject.name, realProject.name);
            Assert.AreEqual(expectedProject.deadLine, realProject.deadLine);

            repository.Delete(realProject);

            realProject = repository.GetAll().Last();

            Assert.AreNotEqual(expectedProject.name, realProject.name);
            Assert.AreNotEqual(expectedProject.deadLine, realProject.deadLine);
        }
 partial void DeleteProject(Project instance);
 partial void UpdateProject(Project instance);
 partial void InsertProject(Project instance);