public void ReactivateCascadeRuns() { BuildProject project = Instance.Create.BuildProject("My Project", "Project"); IList <AssetID> ids = new List <AssetID>(); ids.Add(project.ID); ids.Add(project.CreateBuildRun("Run 1", new DateTime(2008, 1, 1)).ID); ids.Add(project.CreateBuildRun("Run 2", new DateTime(2008, 1, 2)).ID); ids.Add(project.CreateBuildRun("Run 3", new DateTime(2008, 1, 3)).ID); project.Close(); foreach (AssetID id in ids) { Assert.IsTrue(Instance.Get.BaseAssetByID(id).IsClosed); } project.Reactivate(); foreach (AssetID id in ids) { Assert.IsTrue(Instance.Get.BaseAssetByID(id).IsActive); } }