Пример #1
0
        public static void Initialize(ITaskAppService taskAppService)
        {
            if (taskAppService.GetAll(new GetAllTasksInput()).Result.Items.Any())
            {
                return;
            }

            //for (int i = 0; i < 100; i++)
            //{
            //    taskAppService.Create(new CreateTaskInput()
            //    {
            //        Title = $"测试数据remote-{DateTime.Now.ToLongTimeString()}",
            //        Description = $"测试数据描述 {i}"
            //    });
            //}

            taskAppService.CreateMany("本地数据", 500);
        }