Ejemplo n.º 1
0
 public async Task<IHttpActionResult> DeletePreLocation([FromBody] ReportLocation location)
 {
     return await HttpActionResultWithErrorHandling(SecurityActions.SuperTenantAdmin, async () =>
     {
         var preLocations = await _adminRepo.DeleteLocation(location);
         return Json(preLocations);
     });
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the command line arguments for the reporting process.
 /// </summary>
 public virtual string GetArguments()
 {
     // Because we may have a archive location like "C:\Program Files\MyPath" with quotes,
     // the arguments below have an extra leading and trailing space around quoted values
     // for proper parsing.
     return(string.Format(
                "--reportType=\" {0} \" " +
                "--archiveLocation=\" {1} \" " +
                "--reportLocation=\" {2} \" " +
                "--title=\" {3} \" " +
                "--company=\" {4} \"",
                ReportType.Replace("\"", "\\\""),
                FilePath.GetDirectoryName(ArchiveFilePath).Replace("\"", "\\\""),
                ReportLocation.Replace("\"", "\\\""),
                Title.Replace("\"", "\\\""),
                Company.Replace("\"", "\\\"")));
 }
Ejemplo n.º 3
0
 public NUnitXmlReporter(IIOWriter filewriter, ReportLocation location)
 {
     _filewriter = filewriter;
     _location = location;
 }
Ejemplo n.º 4
0
 public HtmlReporter(IIOWriter iowriter, ReportLocation location)
 {
     _iowriter = iowriter;
     _location = location;
 }