public void controllerFilterNameTest()
        {
            controller.add("1", "name", "1231231231", "ab");
            controller.add("2", "namuil", "1231231231", "ab");
            controller.add("3", "alex", "1231231231", "ab");
            List <Candidate> filteredList = controller.nameStartsWith("nam");

            Assert.AreEqual(2, filteredList.Count);

            filteredList = controller.nameStartsWith("alex");
            Assert.AreEqual(1, filteredList.Count);

            filteredList = controller.nameStartsWith("b");
            Assert.AreEqual(0, filteredList.Count);
        }
        /*
         * Filters by name
         */
        private void textBoxFilterName_TextChanged(object sender, EventArgs e)
        {
            string name = textBoxFilterName.Text;

            if (name.Equals(""))
            {
                updateDataModel(controller.getAll());
            }
            else
            {
                updateDataModel(controller.nameStartsWith(name));
            }
        }