Esempio n. 1
0
        // public static async Task GenerateAsync(this ITypeContext typeContext, Authentication authentication, int tryCount)
        // {
        //     for (var i = 0; i < tryCount; i++)
        //     {
        //         await typeContext.GenerateAsync(authentication);
        //     }
        // }

        // public static async Task GenerateAsync(this ITableContext tableContext, Authentication authentication)
        // {
        //     if (RandomUtility.Within(25) == true)
        //         await tableContext.GenerateCategoryAsync(authentication);
        //     else
        //         await tableContext.GenerateTableAsync(authentication);
        // }

        // public static async Task GenerateAsync(this ITableContext tableContext, Authentication authentication, int tryCount)
        // {
        //     for (var i = 0; i < tryCount; i++)
        //     {
        //         await tableContext.GenerateAsync(authentication);
        //     }
        // }

        public static async Task GenerateCategoriesAsync(this ITableContext tableContext, Authentication authentication, int tryCount)
        {
            for (var i = 0; i < tryCount; i++)
            {
                await tableContext.GenerateCategoryAsync(authentication);
            }
        }