Example #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);
     });
 }
Example #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("\"", "\\\"")));
 }
Example #3
0
 public NUnitXmlReporter(IIOWriter filewriter, ReportLocation location)
 {
     _filewriter = filewriter;
     _location = location;
 }
Example #4
0
 public HtmlReporter(IIOWriter iowriter, ReportLocation location)
 {
     _iowriter = iowriter;
     _location = location;
 }