コード例 #1
0
ファイル: ChapterExtensions.cs プロジェクト: sjclark76/Bard
        /// <summary>
        ///     Get the latest result from the test pipeline and continue on with the test.
        /// </summary>
        public static void GetResult <TStoryData>(this ISimpleChapter <TStoryData> chapter, Action <TStoryData> useResult)
            where TStoryData : class, new()
        {
            GetResult(chapter, out TStoryData storyData);

            useResult(storyData);
        }
コード例 #2
0
ファイル: ChapterExtensions.cs プロジェクト: sjclark76/Bard
        /// <summary>
        ///     Get the latest result from the test pipeline and continue on with the test.
        /// </summary>
        public static TStoryData GetResult <TStoryData>(this ISimpleChapter <TStoryData> chapter) where TStoryData : class, new()
        {
            GetResult(chapter, out TStoryData storyData);

            return(storyData);
        }
コード例 #3
0
ファイル: ChapterExtensions.cs プロジェクト: sjclark76/Bard
 /// <summary>
 ///    execute the pipeline
 /// </summary>
 public static void Execute <TStoryData>(this ISimpleChapter <TStoryData> chapter)
     where TStoryData : class, new()
 {
     chapter.ExecutePipeline();
 }