Example #1
0
 public void V_TestInsertContact()
 {
     try
     {
         var contact = new Contact
         {
             id        = Guid.Empty,
             firstName = "Test",
             lastName  = "Name",
             number    = "+919999222919"
         };
         Guid id = dal.InsertUpdateContact(contact);
         Assert.AreNotEqual(id, Guid.Empty);
     }
     catch (Exception ex)
     {
         Assert.Fail(ex.Message);
     }
 }
Example #2
0
 public Guid InsertContact(Contact contact)
 {
     contact.id = Guid.NewGuid();
     return(contactsDAL.InsertUpdateContact(contact));
 }