Skip to content

ParentProjectId not returned #109

@paulmarshall

Description

@paulmarshall

Bug/Feature Request

The ParentProjectId is not a property of the Project domain class and so not returned when retrieving projects.

This results in the loss of hierarchical links between projects.

Test to reproduce

[TestMethod]
public void GetProjectById_ExistingProject_ReturnsParentProject()
{
  // Arrange
  IConnectedTc connectedTc = cnew RemoteTc().Connect(a => a.ToHost("tc")
     .AsUser("MYUSERNAME", "MYPASSWORD"))

  // Act
  Project project = connectedTc.GetProjectById("FluentTc")

  // Assert
  project.ParentProject.Should().NotBeNull();
  project.ParentProject.Id.Should().NotBeNull();
  project.ParentProject.Name.Should().NotBeNull();
  project.ParentProject.Description.Should().NotBeNull();
}

Affected versions

Product Version
FluentTc 0.0.0.241
TeamCity
Autofac
EasyHttp
SharpZipLib
System.IO.Abstractions
TeamCity.ServiceMessages

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions