Exemple #1
0
        public static void Main(string[] args)
        {
            _dbContext = new ManagerReportsContext(new Startup().Configuration);

            Log.Logger = new LoggerConfiguration()
                         .MinimumLevel.Information()
                         .WriteTo.RollingFile(Path.Combine(Directory.GetCurrentDirectory(), "logs", "{Date}.log"))
                         .WriteTo.Console(LogEventLevel.Information)
                         .CreateLogger();

            //DownloadProjects();
            DownloadProejectVersions();
            //DownloadEmployees();
            //DownloadIssueStatuses();
            DownloadIssues();

            DownloadTimeRecords();

            UpdatedTimeRecordResourceNames();
        }
 public ProjectRepository()
 {
     _dbContext = new ManagerReportsContext(new Startup().Configuration); ;
 }
Exemple #3
0
 public TimeRecordService(ManagerReportsContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemple #4
0
 public IssueStatusRepository()
 {
     _dbContext = new ManagerReportsContext(new Startup().Configuration);;
 }
Exemple #5
0
 public ProjectReportService(ManagerReportsContext dbContext)
 {
     _dbContext = dbContext;
 }
 public EmployeeReportService(ManagerReportsContext dbContext)
 {
     _dbContext = dbContext;
 }
 public TimeRecordRepository()
 {
     _dbContext = new ManagerReportsContext(new Startup().Configuration);
 }
 public PaymentService(ManagerReportsContext dbContext)
 {
     _dbContext = dbContext;
 }
 public EmployeeRepository()
 {
     _dbContext = new ManagerReportsContext(new Startup().Configuration);
 }