public void AddNewCategory(ITableCategory category, TaskContext context) { category.Dispatcher.Invoke(() => { var categoryNanme = RandomUtility.NextIdentifier(); category.AddNewCategory(context.Authentication, categoryNanme); }); }
public static void NewCategoryFailTest <T>(ICremaHost cremaHost, ITableCategory category, Authentication authentication) where T : Exception { cremaHost.Dispatcher.Invoke(() => { try { category.AddNewCategory(authentication); Assert.Fail("NewCategory"); } catch (T) { } }); }
public void AddNewCategory() { category.AddNewCategory(authentication, RandomUtility.NextIdentifier()); }
public static ITableCategory AddNewCategory(this ITableCategory category, Authentication authentication) { var newName = NameUtility.GenerateNewName("Folder", category.Categories.Select(item => item.Name)); return(category.AddNewCategory(authentication, newName)); }
public static ITableCategory AddRandomCategory(this ITableCategory category, Authentication authentication) { var categoryName = RandomUtility.NextIdentifier(); return(category.AddNewCategory(authentication, categoryName)); }