public void SetupContext()
        {
            FakeFilesystem = MockRepository.GenerateMock<IFilesystem>();
            Settings = new ConfigSettings { StoryBasePath = BasePath };
            Reader = new SingleFileStoryReader(FakeFilesystem, Settings, "foo.feature");

            FakeFilesystem.Stub(x => x.GetFileText("foo.feature")).Return("foo");
        }
Пример #2
0
        public void SetupContext()
        {
            FakeFilesystem = MockRepository.GenerateMock <IFilesystem>();
            Settings       = new ConfigSettings {
                StoryBasePath = BasePath
            };
            Reader = new SingleFileStoryReader(FakeFilesystem, Settings, "foo.feature");

            FakeFilesystem.Stub(x => x.GetFileText("foo.feature")).Return("foo");
        }
Пример #3
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();
 }