Exemplo n.º 1
0
 public void SetPrivate(ITableCategory category, TaskContext context)
 {
     category.Dispatcher.Invoke(() =>
     {
         if (category.Parent == null)
         {
             return;
         }
         category.SetPrivate(context.Authentication);
     });
 }
 public static void SetPrivateFailTest <T>(ICremaHost cremaHost, ITableCategory category, Authentication authentication) where T : Exception
 {
     cremaHost.Dispatcher.Invoke(() =>
     {
         try
         {
             category.SetPrivate(authentication);
             Assert.Fail("SetPrivate");
         }
         catch (T)
         {
         }
     });
 }
Exemplo n.º 3
0
 public static void SetPrivateFailTest <T>(ITableCategory category, Authentication authentication) where T : Exception
 {
     Assert.AreNotEqual(null, category.Parent);
     category.Dispatcher.Invoke(() =>
     {
         try
         {
             category.SetPrivate(authentication);
             Assert.Fail("SetPrivateFailTest");
         }
         catch (T)
         {
         }
     });
 }
 public void SetPrivate()
 {
     category.SetPrivate(authentication);
 }