public void GetAllContactsTest()
        {
            IContactService contactMgmt = new ContactMgmtService();
            List <Contact>  contacts    = contactMgmt.GetAllContacts();

            Assert.AreNotEqual(contacts, null);
        }
        public void InsertContactTest()
        {
            var contact = GetRandomContact();

            using (IContactService contactMgmt = new ContactMgmtService())
            {
                bool returnValue = contactMgmt.InsertContact(ref contact);
                Assert.AreEqual(returnValue, true);
            }
            contact = null;
        }
        public void UpdateContactTest()
        {
            var contact = GetRandomContact();

            using (IContactService contactMgmt = new ContactMgmtService())
            {
                bool returnValue = contactMgmt.InsertContact(ref contact);
                Assert.AreEqual(returnValue, true, "Insert not successful");
            }

            contact.EmailAddress = string.Concat(newText(), @"@", "outlook.com");
            using (IContactService contactMgmt = new ContactMgmtService())
            {
                bool returnValue = contactMgmt.UpdateContact(ref contact);
                Assert.AreEqual(returnValue, true);
            }
            contact = null;
        }