public void Test_EmployeeDetails()
        {
            // var _persons = _personRepository.GetAll();
            // Arrange
            var mockDbContext         = new  Mock <DbContext>();
            var mockPersonRepository  = new Mock <IPersonRepository>();
            var mockAddressRepository = new Mock <IAddressRepository>();

            var personList = new List <Person>();

            var Person  = new Person();
            var Address = new Address();

            Address.Address1  = "23423 raja st";
            Address.Address2  = "apt# 23232";
            Address.City      = "austin";
            Address.State     = "tx";
            Address.ZipCode   = "78717";
            Address.AddressId = 1;

            Person.PersonId      = 1;
            Person.FirstName     = "kalaiselvi";
            Person.LastName      = "kumar";
            Person.Email         = "*****@*****.**";
            Person.PersonAddress = Address;
            personList.Add(Person);

            mockPersonRepository.Setup(x => x.GetAll())
            .Returns(personList.AsQueryable());


            var controller = new PersonController(mockPersonRepository.Object, mockAddressRepository.Object, mockDbContext.Object);

            // Act
            var result = controller.EmployeeDetails() as ViewResult;

            // Assert

            Assert.IsTrue(string.IsNullOrEmpty(result.ViewName) || result.ViewName == "EmployeeDetails");
        }
        public void Test_Exception_EmployeeDetails()
        {
            // Arrange
            var mockDbContext         = new Mock <DbContext>();
            var mockPersonRepository  = new Mock <IPersonRepository>();
            var mockAddressRepository = new Mock <IAddressRepository>();

            List <Person> personList = null;


            mockPersonRepository.Setup(x => x.GetAll())
            .Returns(personList.AsQueryable());


            var controller = new PersonController(mockPersonRepository.Object, mockAddressRepository.Object, mockDbContext.Object);


            // Act
            var result = controller.EmployeeDetails() as ViewResult;

            // Assert
        }