public void StatesDictionarGetValueByKeyTest()
        {
            Models.States s = new Models.States();
            Dictionary <string, string> dict = s.stateAbbreviationExpand();
            string stateName = dict["KY"];

            Assert.AreSame("Kentucky", stateName);
        }
        public void StatesDictionaryGetAllValuesTest()
        {
            Models.States s = new Models.States();
            Dictionary <string, string> dict = s.stateAbbreviationExpand();
            var value = dict.Values.ToList();

            Assert.IsNotNull(value);
        }
        public void StatesDictionaryGetAllKeysTest()
        {
            Models.States s = new Models.States();
            Dictionary <string, string> dict = s.stateAbbreviationExpand();
            var keys = dict.Keys.ToList();

            Assert.IsNotNull(keys);
        }
        /// <summary>
        /// Getting a list of states to populate dropdown
        /// </summary>
        public void PopulateStates()
        {
            Models.States         s  = new Models.States();
            List <SelectListItem> li = new List <SelectListItem>();

            Dictionary <string, string> dict = s.stateAbbreviationExpand();
            var keys = dict.Keys.ToList();

            foreach (var f in keys)
            {
                string stateName = dict[f];
                string stateCode = f.ToString();
                li.Add(new SelectListItem {
                    Text = stateName, Value = stateCode
                });
            }
            ViewData["states"] = li;
        }