public void GetTweet_GivenAnUnknownTweet_Throws()
        {
            var test = new MemoryTweetStore();

            Assert.Throws(typeof (KeyNotFoundException),
                          () => test.GetTweet("456"));
        }
        public void AddTweet_GivenADuplicatedTweet_ReturnsFalse()
        {
            var test = new MemoryTweetStore();

            test.AddTweet(New.Tweet);

            Assert.False(test.AddTweet(New.Tweet));
        }
        public void GetTweet_GivenAKnownTweet_ReturnsTheTweet()
        {
            var test = new MemoryTweetStore();

            Tweet tweet = New.Tweet;
            test.AddTweet(tweet);

            Assert.Same(tweet, test.GetTweet(tweet.Id));
        }
        public void GetTweet_GivenAKnownTweet_ReturnsTheTweet()
        {
            var test = new MemoryTweetStore();

            ITweet tweet = A.Tweet.Build();
            test.Add(tweet);

            test.GetTweet(tweet.Id).Should().Be.SameAs(tweet);
        }
        public void AddTweet_GivenANewTweet_ReturnsTrue()
        {
            var test = new MemoryTweetStore();

            Assert.True(test.AddTweet(New.Tweet));
        }