Esempio n. 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);
        }