public void SetComment(ITableTemplate template, TaskContext context) { template.Dispatcher.Invoke(() => { var comment = RandomUtility.NextString(); template.SetComment(context.Authentication, comment); }); }
public static void InitializeRandom(this ITableTemplate template, Authentication authentication) { var tableName = RandomUtility.NextIdentifier(); template.SetTableName(authentication, tableName); if (RandomUtility.Within(50) == true) { template.SetTags(authentication, (TagInfo)TagInfoUtility.Names.Random()); } if (RandomUtility.Within(50) == true) { template.SetComment(authentication, RandomUtility.NextString()); } template.AddRandomColumns(authentication); }
public void SetComment() { template.SetComment(authentication, RandomUtility.NextString()); }