예제 #1
0
        //This method tests the getSeedList method
        public void Test3()
        {
            SettingsStorageImp st = new SettingsStorageImp();
            Console.WriteLine("[] Trying to get the Seeds of the task : \"b80dcfdd-d8c4-4176-aef1-6b76add16fb3\"");

            List<String> seeds = st.getSeedList("b80dcfdd-d8c4-4176-aef1-6b76add16fb3");

            Console.WriteLine("The seeds of the task are: ");
            foreach (String seed in seeds)
            {
                Console.WriteLine(seed.Trim() );
            }
            Console.WriteLine("");
            Console.WriteLine(" - PASSED -");
        }
예제 #2
0
        //This method tests the getSeedList method
        public void Test3()
        {
            SettingsStorageImp st = new SettingsStorageImp();

            Console.WriteLine("[] Trying to get the Seeds of the task : \"b80dcfdd-d8c4-4176-aef1-6b76add16fb3\"");

            List <String> seeds = st.getSeedList("b80dcfdd-d8c4-4176-aef1-6b76add16fb3");

            Console.WriteLine("The seeds of the task are: ");
            foreach (String seed in seeds)
            {
                Console.WriteLine(seed.Trim());
            }
            Console.WriteLine("");
            Console.WriteLine(" - PASSED -");
        }
예제 #3
0
        //This method tests all the methods when the data searched does not exist in the data base
        public void Test5()
        {
            SettingsStorageImp st = new SettingsStorageImp();

            //testing the method getRestrictions
            Console.WriteLine("[] Trying to get the constraints of a task that does not exist");
            Constraints constraints = st.getRestrictions("e4a55914-0847-4d70-be22-d2ecac7c9dfa");

            if (constraints == null)
            {
                Console.WriteLine(" - PASSED -");
            }

            //testing the method getSeedList
            Console.WriteLine("[] Trying to get the seeds of a task that does not exist");
            List <String> seeds = st.getSeedList("e4a55914-0847-4d70-be22-d2ecac7c9dfa");

            if (seeds.Count == 0)
            {
                Console.WriteLine(" - PASSED -");
            }
        }
예제 #4
0
 /**
  * gets the seeds list from the storage for the specified task.
  */
 public List <String> getSeedList(String taskId)
 {
     return(_settingsStorageImp.getSeedList(taskId));
 }
예제 #5
0
        //This method tests all the methods when the data searched does not exist in the data base
        public void Test5()
        {
            SettingsStorageImp st = new SettingsStorageImp();
            //testing the method getRestrictions
            Console.WriteLine("[] Trying to get the constraints of a task that does not exist");
            Constraints constraints = st.getRestrictions("e4a55914-0847-4d70-be22-d2ecac7c9dfa");

            if (constraints==null)
                Console.WriteLine(" - PASSED -");

            //testing the method getSeedList
            Console.WriteLine("[] Trying to get the seeds of a task that does not exist");
            List<String> seeds = st.getSeedList("e4a55914-0847-4d70-be22-d2ecac7c9dfa");

            if (seeds.Count == 0)
                Console.WriteLine(" - PASSED -");
        }