コード例 #1
0
        private string RetrieveStory(int storyId)
        {
            List <string> stories = StoryRetrievalService.GetStories();

            AssertValidStoryId(stories, storyId);

            string story = StoryRetrievalService.GetStory(stories, storyId);

            return(story);
        }
コード例 #2
0
        private List <FullName> RetrieveNamesFromStory(int storyId)
        {
            List <string> stories = StoryRetrievalService.GetStories();

            AssertValidStoryId(stories, storyId);

            string story = StoryRetrievalService.GetStory(stories, storyId);

            List <FullName> fullNames = StoryRetrievalService.GetNamesFromStory(story, storyId);

            return(fullNames);
        }
コード例 #3
0
        private string RetrieveAnonymizedStory(int storyId)
        {
            List <string> stories = StoryRetrievalService.GetStories();

            AssertValidStoryId(stories, storyId);

            string          story = StoryRetrievalService.GetStory(stories, storyId);
            List <FullName> names = StoryRetrievalService.GetNamesFromStory(story, storyId);

            string anonymizedStory = StoryRetrievalService.AnonymizeStory(story, names);

            return(anonymizedStory);
        }