コード例 #1
0
        public void GetDatabaseExport()
        {
            HelpdeskFacade helpdeskFacade = new HelpdeskFacade();
            var            response       = helpdeskFacade.ExportDatabase();

            Assert.AreEqual(HttpStatusCode.OK, response.Status);
        }
コード例 #2
0
 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);
 }