コード例 #1
0
        //This method tests the setRestrictions method
        public void Test2()
        {
            SettingsStorageImp st = new SettingsStorageImp();
            Console.WriteLine("[] Trying to set constraints to the task : \"b80dcfdd-d8c4-4176-aef1-6b76add16fb3\"");
            Constraints constraints = new Constraints(13, false, "org ru uk ","com co.il ac.il gov.il");

            st.setRestrictions("b80dcfdd-d8c4-4176-aef1-6b76add16fb3", constraints);
            Console.WriteLine(" - PASSED -");
            Console.WriteLine("=============================================================");
        }
コード例 #2
0
        //This method tests the setRestrictions method
        public void Test2()
        {
            SettingsStorageImp st = new SettingsStorageImp();

            Console.WriteLine("[] Trying to set constraints to the task : \"b80dcfdd-d8c4-4176-aef1-6b76add16fb3\"");
            Constraints constraints = new Constraints(13, false, "org ru uk ", "com co.il ac.il gov.il");

            st.setRestrictions("b80dcfdd-d8c4-4176-aef1-6b76add16fb3", constraints);
            Console.WriteLine(" - PASSED -");
            Console.WriteLine("=============================================================");
        }
コード例 #3
0
 /**
  * set a new work restriction which will be activited in the next run
  */
 public void setRestrictions(String taskId, Constraints constrains)
 {
     _settingsStorageImp.setRestrictions(taskId, constrains);
 }