/// <summary>
		/// Defects found in this Build Run
		/// </summary>
		public ICollection<Defect> GetFoundDefects(DefectFilter filter)
		{
			filter = filter ?? new DefectFilter();
			filter.FoundIn.Clear();
			filter.FoundIn.Add(this);
			return Instance.Get.Defects(filter);
		}
 public void AddToDefectFilter(V1Instance v1Instance, DefectFilter filter, bool includeDecendants)
 {
     var projectList = includeDecendants ? ChildrenMeAndDown : JustMe;
     foreach (var project in projectList)
     {
         filter.Project.Add(v1Instance.Get.ProjectByID(project.ScopeId));
     }
 }
        private DefectFilter GetFilter() {
            var filter = new DefectFilter();
            filter.Project.Add(sandboxProject);
			return filter;
		}
		/// <summary>
		/// Defects that are immediate children of this Epic
		/// </summary>
		public ICollection<Defect> GetChildDefects(DefectFilter filter)
		{
			filter = filter ?? new DefectFilter();
			filter.Epic.Clear();
			filter.Epic.Add(this);
			return Instance.Get.Defects(filter);
		}