FluentTc icon indicating copy to clipboard operation
FluentTc copied to clipboard

ParentProjectId not returned

Open paulmarshall opened this issue 8 years ago • 3 comments

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

paulmarshall avatar Aug 18 '17 16:08 paulmarshall

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

borismod avatar Aug 21 '17 18:08 borismod

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

robertlyson avatar Nov 13 '17 09:11 robertlyson

@robertlyson Go for it

paulmarshall avatar Nov 13 '17 09:11 paulmarshall