コード例 #1
0
 public OverviewDataModelBuilder WithOverviewStage(OverviewStage stage)
 {
     _stages.Add(stage);
     return this;
 }
コード例 #2
0
        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);
        }