Exemplo n.º 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); ;
 }
Exemplo n.º 3
0
 public TimeRecordService(ManagerReportsContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 4
0
 public IssueStatusRepository()
 {
     _dbContext = new ManagerReportsContext(new Startup().Configuration);;
 }
Exemplo n.º 5
0
 public ProjectReportService(ManagerReportsContext dbContext)
 {
     _dbContext = dbContext;
 }
 public EmployeeReportService(ManagerReportsContext dbContext)
 {
     _dbContext = dbContext;
 }
 public TimeRecordRepository()
 {
     _dbContext = new ManagerReportsContext(new Startup().Configuration);
 }
Exemplo n.º 8
0
 public PaymentService(ManagerReportsContext dbContext)
 {
     _dbContext = dbContext;
 }
 public EmployeeRepository()
 {
     _dbContext = new ManagerReportsContext(new Startup().Configuration);
 }