public OverviewDataModelBuilder WithReleasePath(ReleasePath releasePath) { _releasePaths.Add(releasePath); return this; }
internal static void AssertDynamicCollectionContainsReleasePath(List<dynamic> collection, ReleasePath expectedReleasePath) { bool releaseIsInCollection = false; foreach (var release in collection) { if (release.name == expectedReleasePath.Name) { releaseIsInCollection = true; break; } } Assert.IsTrue(releaseIsInCollection, "ReleasePath with name {0} could not be found", expectedReleasePath.Name); }