Example #1
0
        public void AddNewContactTest()
        {
            DTOContact newContact = new DTOContact();

            newContact.City       = "Hyderabad";
            newContact.ContactId  = 1;
            newContact.CreatedOn  = DateTime.Now;
            newContact.EMailId    = "*****@*****.**";
            newContact.FirstName  = "MahaGanapathy";
            newContact.HNo        = "2-4-525";
            newContact.ImagePath  = "Mahaganapthy.jpg";
            newContact.LastName   = "The Lord";
            newContact.ModifiedOn = DateTime.Now;
            newContact.PIN        = "500035";
            newContact.RoadNo     = "Road No 3";
            newContact.State      = "Telangana";
            newContact.Street     = "New Nagole Colony";
            bool successfullyCreated = MyAngularContactsDataLayer.AddNewContact(newContact);

            Debug.Equals(successfullyCreated, true);
        }