Esempio n. 1
0
        private void GetAllContent()
        {
            Console.Clear();

            Dictionary<int, List<string>> access = _repo.GetAllContent();

            foreach (var content in access)
            {
                Console.WriteLine($"     {"Claim ID",-25}{"Claim Type",-25}");
                Console.WriteLine($"     {access.Keys,-25}{access.Values,-25}");

            }
            Console.WriteLine("Press any button to Continue.");
            Console.ReadLine();

        }
Esempio n. 2
0
        public void GetAllContents_ShouldReturnedAllDictionaryItems()
        {
            
            int id = 1;
            List<string> word = new List<string>();

            _repo = new Badge_Repo();

            _repo.AddToDictionary(id, "A5");

            Dictionary<int, List<string>> contents = _repo.GetAllContent();

            bool dictionaryHasContent = contents.ContainsKey(1);
        }