Пример #1
0
        private IEnumerable <Story> GetStoriesForProject(ConfigSettings config)
        {
            var filesystemStoryReader = new FilesystemStoryReader(new Filesystem(), config);
            var storyProvider         = new StoryProvider(filesystemStoryReader, new StoryParser());

            return(storyProvider.GetStories());
        }
Пример #2
0
        public IEnumerable <Story> GetStories(string location)
        {
            var storyReader   = new SingleFileStoryReader(new Filesystem(), ConfigSettings, location);
            var storyProvider = new StoryProvider(storyReader, new StoryParser());

            return(storyProvider.GetStories());
        }
Пример #3
0
        public int Run()
        {
            var failed = Handler.HandleStories(StoryProvider.GetStories()).Failed;

            // hack
            SessionContext.Dispose();

            return(failed);
        }
Пример #4
0
 public IEnumerable <Story> Get()
 {
     return(StoryProvider.GetStories());
 }
Пример #5
0
 public int Run()
 {
     return(Handler.HandleStories(StoryProvider.GetStories()).Failed);
 }