public void AllTest()
        {
            IUnitOfWork _context = new ToolManDataContext(); // TODO: 初始化为适当的值
            ProjectRepository target = new ProjectRepository(_context); // TODO: 初始化为适当的值
            List<Project> expected = null; // TODO: 初始化为适当的值
            int count = 3;

            List<Project> actual;
            actual = target.All();
            Assert.AreEqual(count, actual.Count);
              // Assert.Inconclusive("验证此测试方法的正确性。");
        }
 /// <summary>
 /// 获取成本中心列表
 /// </summary>
 /// <returns>成本中心列表</returns>
 public List<Project> GetProjects()
 {
     using (IUnitOfWork unitwork = MSSqlHelper.DataContext())
     {
         IProjectRepository projectRepository = new ProjectRepository(unitwork);
         List<Project> projects = projectRepository.All();
         return projects;
     }
 }