void CanSaveMessagesInDb()
        {
            EfBirthdayMessagesRepository repository = new EfBirthdayMessagesRepository();
            var expectedMessage = new BirthdayMessage(new Name("Foo", "Bar"));

            repository.New(expectedMessage);

            var newMessage = repository.ReadAll().First();

            Assert.Equal(expectedMessage, newMessage);
        }
        void CanReadMessagesFromDb()
        {
            PopulateDb(() =>
            {
                EfBirthdayMessagesRepository repository = new EfBirthdayMessagesRepository();

                List <BirthdayMessage> expectedBirthdayMessages = new List <BirthdayMessage>
                {
                    new BirthdayMessage(TestEmployees.John.Name),
                    new BirthdayMessage(TestEmployees.Mary.Name)
                };

                List <BirthdayMessage> actualBirthdayMessages = repository.ReadAll();
                Assert.Equal(expectedBirthdayMessages, actualBirthdayMessages);
            });
        }