public void GetHelloWorld() //First message must always be "Hello World!"
        {
            MockMessageRepository repo = new MockMessageRepository();
            string greetingMessage     = repo.GetMessageById(1).GreetingMessage;

            Assert.Equal("Hello World!", greetingMessage);
        }
        public void InsertEleventhMessage() //Inserting an 11th message should not be possible
        {
            MockMessageRepository repo = new MockMessageRepository();
            Message eleventhMessage    = new Message {
                GreetingMessageId = 11, GreetingMessage = "I'm the eleventh!"
            };
            IEnumerable <Message> result = repo.ModifyMockMessages(eleventhMessage);

            Assert.Equal(10, result.Count());
        }
        public void MessageCountAfterPurge() //There should be one remaining message after a purge
        {
            MockMessageRepository repo = new MockMessageRepository();
            Message purgeMessage       = new Message {
                GreetingMessageId = -1, GreetingMessage = "PURGE"
            };
            IEnumerable <Message> result = repo.ModifyMockMessages(purgeMessage);

            Assert.Single(result);
        }