public void FindById_Should_Return_Correct_Story()
        {
            Stories.Add(CreateStory() as Story);

            var id    = Stories[0].Id;
            var story = _storyRepository.FindById(id);

            Assert.Equal(id, story.Id);
        }
        public void FindById_Should_Return_Correct_Story()
        {
            using (BeginTransaction())
            {
                var story = CreateNewStory();
                _storyRepository.Add(story);
                _database.SubmitChanges();

                var id         = story.Id;
                var foundStory = _storyRepository.FindById(id);
                Assert.Equal(id, foundStory.Id);
            }
        }
        // GET: api/Stories/5
        public Story Get(string id)
        {
            var storyId = ObjectId.Parse(id);

            return(_storyRepository.FindById(storyId));
        }