public OverviewDataModelBuilder WithOverviewStage(OverviewStage stage) { _stages.Add(stage); return this; }
internal static void AssertDynamicCollectionContainsStage(List<dynamic> collection, OverviewStage expectedStage) { bool releaseIsInCollection = false; foreach (var release in collection) { if (release.name == expectedStage.Name) { releaseIsInCollection = true; break; } } Assert.IsTrue(releaseIsInCollection, "OverviewStage with name {0} could not be found", expectedStage.Name); }