public void CanGetAllCustomerContacts()
        {
            CustomerContactRepositoryMock repo     = new CustomerContactRepositoryMock();
            List <CustomerContact>        contacts = repo.GetAllContacts().ToList();

            Assert.AreEqual(3, contacts.Count);

            Assert.AreEqual(2, contacts[1].ContactId);
            Assert.AreEqual("Test Contact 2", contacts[1].ContactName);
            Assert.AreEqual("Test Contact Message 2", contacts[1].MessageBody);
            Assert.AreEqual("777-777-7777", contacts[1].Phone);
            Assert.AreEqual("*****@*****.**", contacts[1].Email);
        }
        public void CanAddContact()
        {
            CustomerContact contact = new CustomerContact
            {
                ContactName = "Test Contact 4",
                Phone       = "222-222-2222",
                Email       = "*****@*****.**",
                MessageBody = "Test Contact Message 4"
            };

            CustomerContactRepositoryMock repo = new CustomerContactRepositoryMock();

            repo.Insert(contact);

            List <CustomerContact> contacts = repo.GetAllContacts().ToList();

            Assert.AreEqual(4, contacts.Count);

            Assert.AreEqual(4, contacts[3].ContactId);
            Assert.AreEqual(contact.ContactName, contacts[3].ContactName);
            Assert.AreEqual(contact.Phone, contacts[3].Phone);
            Assert.AreEqual(contact.Email, contacts[3].Email);
            Assert.AreEqual(contact.MessageBody, contacts[3].MessageBody);
        }