public async Task <DemoProject> AddProjectTest()
        {
            ReplaceCurrentUser(_userId1);
            var input = new AddProjectInputDto()
            {
                ProjectName  = "name1",
                ProjectItems = new List <DemoUnitProjectItemDto>()
                {
                    new DemoUnitProjectItemDto()
                    {
                        Name    = "name2",
                        Address = "address1"
                    }
                }
            };
            var projectId = Guid.Empty;

            await WithUnitOfWorkAsync(async() => { projectId = await _demoProjectAppService.AddProject(input); });

            return(await WithUnitOfWorkAsync(async() =>
            {
                var project = await _demoProjectRepository.Include(x => x.DemoUnitProjects).FirstOrDefaultAsync(x => x.Id == projectId);
                project.ShouldNotBeNull();
                project.DemoUnitProjects.Count.ShouldBe(1);
                project.DemoUnitProjects.First().Name.ShouldBe(input.ProjectItems[0].Name);
                project.Name.ShouldBe(input.ProjectName);
                return project;
            }));
        }
        /// <summary>
        /// 添加项目
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        //[Authorize]
        public async Task <Guid> AddProject(AddProjectInputDto input)
        {
            var project = await _demoProjectManager.CreateProject(input.ProjectName);

            //foreach (var unitProjectItem in input.ProjectItems)
            //{
            //    await _demoProjectManager.CreateUnitProjectToProject(unitProjectItem.Name, unitProjectItem.Address, project.Id);
            //}
            return(project.Id);
        }