private List <Build> GetBuildsFromRepo() { var allBuilds = GetAllBuilds() .Where(b => !_buildsToExclude.Builds() .Contains(new BuildGroup(b.BuildTypeId).BuildTypeGroup)) .ToList(); return((from build in allBuilds let buildDetails = GetBuildDetails(build.Href) select new Build { Id = build.Id, BuildTypeId = build.BuildTypeId, Number = build.Number, Status = build.Status, State = build.State, Href = build.Href, StartDateTime = _tellTheTime.ParseBuildDetailDateTimes(buildDetails.StartDateTime), FinishDateTime = _tellTheTime.ParseBuildDetailDateTimes(buildDetails.FinishDateTime), QueueDateTime = _tellTheTime.ParseBuildDetailDateTimes(buildDetails.QueuedDateTime), AgentName = buildDetails.Agent.Name, IgnoredTestCount = buildDetails.IgnoredTestCount }) .ToList()); }