public void GetDatabaseExport() { HelpdeskFacade helpdeskFacade = new HelpdeskFacade(); var response = helpdeskFacade.ExportDatabase(); Assert.AreEqual(HttpStatusCode.OK, response.Status); }
public Task Execute(IJobExecutionContext context) { try { var facade = new HelpdeskFacade(); if (facade.ExportDatabase().Status != HttpStatusCode.OK) { s_logger.Error("Unable to export database."); } } catch (Exception ex) { s_logger.Error(ex, "Unable to export database."); } return(Task.CompletedTask); }