public void Index()
        {
            PeopleController controller = new PeopleController();
            ViewResult result = controller.Index() as ViewResult;

            Assert.IsNotNull(result);
        }
        public UnitTest1()
        {
            var data = new List<Person>
            {
                new Person(){ FirstName="Alex", LastName="Luka"},
                new Person(){ FirstName="Johnn", LastName="Depp"},
                new Person(){ FirstName="Christian", LastName="Christian"},
                new Person(){ FirstName="Kevin", LastName="Spacey"}
            }.AsQueryable();

            var mockSet = new Mock<DbSet<Person>>();
            mockSet.As<IQueryable<Person>>().Setup(m => m.Provider).Returns(data.Provider); 
            mockSet.As<IQueryable<Person>>().Setup(m => m.Expression).Returns(data.Expression); 
            mockSet.As<IQueryable<Person>>().Setup(m => m.ElementType).Returns(data.ElementType); 
            mockSet.As<IQueryable<Person>>().Setup(m => m.GetEnumerator()).Returns(data.GetEnumerator());
            Mock<PeopleDBContext> myMock = new Mock<PeopleDBContext>();
            myMock.Setup(m => m.People).Returns(mockSet.Object);
            pc= new PeopleController();
            pc.setContext(mockSet.Object);
        }
        public void PeopleController_Search_NotNull(string firstName, string lastName)
        {
            var peopleController = new PeopleController();

            var result = peopleController.Search(firstName, lastName);

            Microsoft.VisualStudio.TestTools.UnitTesting.Assert.IsNotNull(result);
        }