Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParentProjectId not returned #109

Open
paulmarshall opened this issue Aug 18, 2017 · 3 comments
Open

ParentProjectId not returned #109

paulmarshall opened this issue Aug 18, 2017 · 3 comments

Comments

@paulmarshall
Copy link

paulmarshall commented Aug 18, 2017

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
@borismod
Copy link
Contributor

@paulmarshall thank you for reporting. You are welcome to contribute the required code. I will review it

@robertlyson
Copy link

@paulmarshall are you looking into this or maybe I can grab it?

@paulmarshall
Copy link
Author

@robertlyson Go for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants