// See https://aka.ms/new-console-template for more information
using CloudGaming.DtoModel;


using HuanMeng.DotNetCore.Utility;

using Newtonsoft.Json;

using System.Reflection;

using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
using CloudGaming.DtoModel.Epg;

namespace CloudGaming.Test
{
    [MemoryDiagnoser]
    [MarkdownExporterAttribute.GitHub]
    [SimpleJob(RuntimeMoniker.Net80, baseline: true)]
    [RPlotExporter]
    public class Program
    {

        static void Main(string[] args)
        {
            //List<EpgCategoryDto> epgCategoryDtos = new List<EpgCategoryDto>();
            //for (int i = 0; i < 20; i++)
            //{
            //    epgCategoryDtos.Add(new EpgCategoryDto()
            //    {
            //        CategoryName = "Banner" + i,
            //        CategoryType = "Banner" + i,
            //        IsQuickStartPopUp = true,
            //        ShowNum_Index = 10 + i,
            //        EpgList = new List<EpgInfo>()
            //    {
            //        new EpgInfo(){
            //            CornerIcon=i,
            //            EpgId=i,
            //            IdName="IO"+i,
            //            ResType=4,
            //            Pic=1,
            //            Title="title"+i
            //        },
            //        new EpgInfo(){
            //            CornerIcon=i+2,
            //            EpgId=i+2,
            //            IdName="IO"+i+2,
            //            ResType=4+2,
            //            Pic=2,
            //            Title="title"+i+2
            //        }
            //    },
            //    });
            //}


            //var dic = ObjectExtensions5.ToDictionaryOrList(epgCategoryDtos);
            //Console.WriteLine(JsonConvert.SerializeObject(dic));
            BenchmarkRunner.Run<ToDictionaryOrListTest>();
        }
    }
}


