Example #1
0
 public void AddNewCategory(ITypeCategory category, TaskContext context)
 {
     category.Dispatcher.Invoke(() =>
     {
         var categoryNanme = RandomUtility.NextIdentifier();
         category.AddNewCategory(context.Authentication, categoryNanme);
     });
 }
Example #2
0
        public static ITypeCategory AddRandomCategory(this ITypeCategory category, Authentication authentication)
        {
            var categoryName = RandomUtility.NextIdentifier();

            return(category.AddNewCategory(authentication, categoryName));
        }
Example #3
0
        public static ITypeCategory AddNewCategory(this ITypeCategory category, Authentication authentication)
        {
            var newName = NameUtility.GenerateNewName("Folder", category.Categories.Select(item => item.Name));

            return(category.AddNewCategory(authentication, newName));
        }
Example #4
0
 public void AddNewCategory()
 {
     category.AddNewCategory(authentication, RandomUtility.NextIdentifier());
 }