public void SetData_WhenSettingDtoWithBuilds_BuildsContainsNewBuilds()
        {
            var buildRefList = new List<buildref>
            {
                new buildref{href = "project1Href"},
                new buildref{href = "project2Href"}
            };

            var buildsDto = new builds
            {
                build = buildRefList
            };

            this.testee.SetData(buildsDto);

            testee.Builds.Count().Should().Be(2);
        }
        public void SetData_WhenSettingDtoWithProjects_TheseProjectsAreReturnedAsDependencies()
        {
            var buildRefList = new List<buildref>
            {
                new buildref{href = "project1Href"},
                new buildref{href = "project2Href"}
            };

            var buildsDto = new builds
            {
                build = buildRefList
            };

            this.testee.SetData(buildsDto);

            testee.Dependencies.Count().Should().Be(2);
        }
 public build()
 {
     this.artifactsField = new HReference();
     this.relatedIssuesField = new issueUsages();
     this.changesField = new changesref();
     this.triggeredField = new triggeredBy();
     this.revisionsField = new List<revision>();
     this.artifactdependenciesField = new builds();
     this.snapshotdependenciesField = new builds();
     this.propertiesField = new List<property>();
     this.userField = new userref();
     this.pinInfoField = new comment();
     this.tagsField = new List<string>();
     this.commentField = new comment();
     this.agentField = new agentref();
     this.buildTypeField = new buildTyperef();
     this.runninginfoField = new runningBuildInfo();
 }