Exemplo n.º 1
0
        public override void CheckPage(TfsClient client)
        {
            base.CheckPage(client);

            var path = TfsPath;

            if (!CheckTfsPathArea(path, AreaName))
            {
                throw new InvalidOperationException($"TFS path '{path}' seems not conforming with area name '{AreaName}'.");
            }

            if (!CheckTfsPathProject(path, ProjectName))
            {
                throw new InvalidOperationException($"TFS path '{path}' seems not conforming with project name '{ProjectName}'.");
            }

            var project = new ProjectDocument(() => client.ReadFile(ProjectFile));

            ProjectUid = project.GetProjectGuid();
        }