Ejemplo n.º 1
0
        public IEnumerable<Core.Story> CreateTwoStoriesEachWithTwoScenariosWithThreeStepsOfFiveMilliseconds()
        {
            var storyMetaData1 = new StoryMetaData(typeof(RegularAccountHolderStory), "As a person", "I want ice cream", "So that I can be happy", "Happiness");
            var storyMetaData2 = new StoryMetaData(typeof(GoldAccountHolderStory), "As an account holder", "I want to withdraw cash", "So that I can get money when the bank is closed", "Account holder withdraws cash");
            var stories = new List<Core.Story>()
            {
                new Core.Story(storyMetaData1, GetScenarios()),
                new Core.Story(storyMetaData2, GetScenarios())
            };

            return stories;
        }
Ejemplo n.º 2
0
 public Story(StoryMetaData metaData, params Scenario[] scenarios)
 {
     MetaData = metaData;
     Scenarios = scenarios.OrderBy(s => s.Title).ToList();
 }
Ejemplo n.º 3
0
 public Story(StoryMetaData metaData, params Scenario[] scenarios)
 {
     MetaData  = metaData;
     Scenarios = scenarios.OrderBy(s => s.Title).ToList();
 }