public SelectedResultFormat(ResultFormatInformation format, bool isSelected) { DisplayName = format.DisplayName; MimeType = format.MimeType; FileExtension = format.FileExtension; IsSelected = isSelected; }
public JsonReportWriter() { Format = new ResultFormatInformation { DisplayName = "Json", MimeType = "application/json", FileExtension = ".json" }; }
public Task <ServiceResponse <IEnumerable <ResultFormatInformation> > > GetResultFormatsAsync() { var format = new ResultFormatInformation { DisplayName = "Excel", FileExtension = ".xlsx" }; var response = new ServiceResponse <IEnumerable <ResultFormatInformation> >(new[] { format }); return(Task.FromResult(response)); }
public JsonReportWriter() { _formatInformation = new ResultFormatInformation { DisplayName = "Json", MimeType = "application/json", FileExtension = ".json" }; }
public ExcelReportWriter(ITargetMapper targetMapper) { _targetMapper = targetMapper; Format = new ResultFormatInformation { DisplayName = "Excel", MimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", FileExtension = ".xlsx" }; }
public HtmlReportWriter(ITargetMapper targetMapper) { _targetMapper = targetMapper; _formatInformation = new ResultFormatInformation { DisplayName = "HTML", MimeType = "text/html", FileExtension = ".html" }; }