Example #1
0
        public static async Task InitializeRandomAsync(this ITableTemplate template, Authentication authentication)
        {
            var tableName = GenerateTableName(template);
            await template.SetTableNameAsync(authentication, tableName);

            if (RandomUtility.Within(50) == true)
            {
                await template.SetTagsAsync(authentication, (TagInfo)TagInfoUtility.Names.Random());
            }
            if (RandomUtility.Within(50) == true)
            {
                await template.SetCommentAsync(authentication, RandomUtility.NextString());
            }
            await template.AddRandomColumnsAsync(authentication);
        }
 public async Task SetCommentAsync(ITableTemplate template, TaskContext context)
 {
     var authentication = context.Authentication;
     var comment        = RandomUtility.NextString();
     await template.SetCommentAsync(authentication, comment);
 }