Esempio n. 1
0
        public void CanAddMessage()
        {
            var repo = new CarsRepository();

            Assert.AreEqual(repo.GetAllMessages().Count, 3);
            repo.AddMessage(new Contact()
            {
                ContactMessage = "this", ContactName = "bob", Email = "*****@*****.**", Phone = "999-999-9999"
            });
            Assert.AreEqual(repo.GetAllMessages().Count, 4);
        }