public void CreateContactListTest()
 {
     ContactsRepository target = new ContactsRepository();
     ContactList contactList = new ContactList()
     {
         Name = "MyFirstList"
     };
     target.CreateContactList(contactList);
 }
 public void CreateContactTest()
 {
     ContactsRepository target = new ContactsRepository();
     Contact contact = new Contact()
     {
         UserName = "******",
         Organization = "BarnumAndBailey",
         Title = "Clown",
         Phone = "6661231234"
     };
     target.CreateContact(contact);
 }
 public static void MyClassInitialize(TestContext testContext)
 {
     var repo = new ContactsRepository();
     repo.InitializeCollections();
 }
 public void ContactsRepositoryConstructorTest()
 {
     ContactsRepository target = new ContactsRepository();
     Assert.IsNotNull(target);
 }
 public void GetContactTest()
 {
     ContactsRepository target = new ContactsRepository(); // TODO: Initialize to an appropriate value
     string id = string.Empty; // TODO: Initialize to an appropriate value
     Contact expected = null; // TODO: Initialize to an appropriate value
     Contact actual;
     actual = target.GetContact(id);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void ListCollectionsTest()
 {
     ContactsRepository target = new ContactsRepository();
     IEnumerable<string> actual;
     actual = target.ListCollections();
     Assert.IsTrue(actual.Count() > 0);
 }
 public void GetContactsTest()
 {
     ContactsRepository target = new ContactsRepository();
     IEnumerable<Contact> actual;
     actual = target.GetContacts();
     Assert.IsTrue(actual.Count() > 0);
 }
 public void GetContactListByNameTest()
 {
     ContactsRepository target = new ContactsRepository();
     string name = "Alpha";
     ContactList actual;
     actual = target.GetContactListByName(name);
     Assert.IsNotNull(actual.Contacts);
     Assert.IsTrue(actual.Contacts.Count > 0);
 }
 public void GetContactByNameTest()
 {
     ContactsRepository target = new ContactsRepository();
     string name = "BozoTheClown";
     Contact actual = null;
     actual = target.GetContactByName(name);
     Assert.IsNotNull(actual);
 }
 public void GetAutoCompleteContactTest()
 {
     ContactsRepository target = new ContactsRepository();
     string field = "UserName";
     string prefix = "test";
     IEnumerable<Contact> actual;
     actual = target.GetAutoCompleteContact(field, prefix);
     Assert.AreEqual(3, actual.Count());
 }
 public void DoitTest()
 {
     ContactsRepository target = new ContactsRepository(); // TODO: Initialize to an appropriate value
     target.Doit();
 }