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()); }
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"); }