public void CollectionContactsMapToPluginContactsShouldBeWoek()
        {
            IReadOnlyList <Contact> contacts = new List <Contact>()
            {
                CreateContact("ttt", "qqqq"),
                CreateContact("ggg", "aaa"),
                CreateContact("bbb", "zzz"),
            };

            var pluginContacts =
                ContactQueryProvider.ConvertToContacts(contacts);
        }
        public void ContactMapToPluginContactShouldBeWork()
        {
            var contact = new Contact()
            {
                FirstName = "lalal",
                LastName  = "hghghg"
            };


            var pluginContact = ContactQueryProvider.ConvertToContact(contact);

            Assert.IsNotNull(pluginContact);
            Assert.AreEqual(contact.FirstName, pluginContact.FirstName);
            Assert.AreEqual(contact.LastName, pluginContact.LastName);
        }
        public void PhoneContactMapToPluginContactShouldBeWork()
        {
            var contact = new Contact()
            {
                FirstName = "lalal",
                LastName  = "hghghg"
            };

            contact.Phones.Add(new ContactPhone()
            {
                Description = "Test number",
                Kind        = ContactPhoneKind.Mobile,
                Number      = "1234567890"
            });

            var pluginContact = ContactQueryProvider.ConvertToContact(contact);


            Assert.IsNotNull(pluginContact);
            Assert.AreEqual(contact.FirstName, pluginContact.FirstName);
            Assert.AreEqual(contact.LastName, pluginContact.LastName);
            Assert.AreEqual(contact.Phones.First().Number, pluginContact.Phones.First().Number);
        }