using System;
using AddressValidation.DataLayer;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddressValidation.Tests
{
    [TestClass]
    public class TestDataLayer
    {
        [TestMethod]
        public void TestInsertIntoContact()
        {
            ContactDbManager.AddContact(new DataLayer.Entities.ContactInfo()
            {
                Address1 = "a",
                Address2 = "b",
                City = "Los Angeles",
                Country = "USA",
                Custom1 = String.Empty,
                Custom2 = String.Empty,
                Email = String.Empty,
                FirstName = String.Empty,
                LastName = String.Empty,
                IsDuplicate = false,
                IsVerified = false,
                Phone = String.Empty,
                State = String.Empty,
                Zip = String.Empty
            });
        }

        [TestMethod]
        public void TestInitMasterTable()
        {
            ContactDbManager.InitMasterTable();
        }
    }
}
