コード例 #1
0
        private Task <IQueryResultDto <DatInfoDto> > GetResultAsync(IQueryDtoMapper <DatInfo, DatInfoDto> mapper,
                                                                    DatInfoFilterDto filter)
        {
            var queryDto = new QueryDto <DatInfoFilterDto>
            {
                Filter    = filter,
                WithCount = true
            };

            return(mapper.QueryDto(queryDto).MapQueryAsync());
        }
コード例 #2
0
        public async Task InitializeTime_Test()
        {
            var filter = new DatInfoFilterDto();
            var timer  = Stopwatch.StartNew();

            var mapper = GetQueryDtoMapper();

            await GetResultAsync(mapper, filter);

            var time = timer.Elapsed.TotalMilliseconds;

            _testOutputHelper.WriteLine($"time: {time: 0.0000} ms");
        }