Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TimesheetController"/> class.
 /// </summary>
 /// <param name="logger">The ILogger object which logs errors and information.</param>
 /// <param name="telemetryClient">The Application Insights telemetry client.</param>
 /// <param name="timesheetHelper">The instance of timesheet helper.</param>
 public TimesheetController(
     ILogger <TimesheetController> logger,
     TelemetryClient telemetryClient,
     ITimesheetHelper timesheetHelper)
     : base(telemetryClient)
 {
     this.logger          = logger;
     this.timesheetHelper = timesheetHelper;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserController"/> class.
 /// </summary>
 /// <param name="logger">The ILogger object which logs errors and information.</param>
 /// <param name="userGraphService">The instance of user Graph service to access logged-in user's reportees and manager.</param>
 /// <param name="telemetryClient">The Application Insights telemetry client.</param>
 /// <param name="timesheetHelper">Instance of project helper which helps in managing operations project entity.</param>
 public UserController(
     ILogger <UserController> logger,
     IUsersService userGraphService,
     TelemetryClient telemetryClient,
     ITimesheetHelper timesheetHelper)
     : base(telemetryClient)
 {
     this.userGraphService = userGraphService;
     this.logger           = logger;
     this.timesheetHelper  = timesheetHelper;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TimesheetController"/> class.
 /// </summary>
 /// <param name="logger">The ILogger object which logs errors and information.</param>
 /// <param name="telemetryClient">The Application Insights telemetry client.</param>
 /// <param name="timesheetHelper">The instance of timesheet helper.</param>
 /// <param name="managerDashboardHelper">The instance of manager dashboard helper.</param>
 /// <param name="repositoryAccessors">Holds the instance of respository accessors for database operations.</param>
 public TimesheetController(
     ILogger <TimesheetController> logger,
     TelemetryClient telemetryClient,
     ITimesheetHelper timesheetHelper,
     IManagerDashboardHelper managerDashboardHelper,
     IRepositoryAccessors repositoryAccessors)
     : base(telemetryClient)
 {
     this.logger                 = logger;
     this.timesheetHelper        = timesheetHelper;
     this.managerDashboardHelper = managerDashboardHelper;
     this.repositoryAccessors    = repositoryAccessors;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProjectController"/> class.
 /// </summary>
 /// <param name="logger">The ILogger object which logs errors and information.</param>
 /// <param name="repositoryAccessor">The instance of repository accessor to access project data.</param>
 /// <param name="projectHelper">The instance of project helper which helps in managing operations on project entity.</param>
 /// <param name="userHelper">Instance of user helper.</param>
 /// <param name="telemetryClient">The Application Insights telemetry client.</param>
 /// <param name="taskMapper">The instance of task mapper.</param>
 /// <param name="taskHelper">The instance of task helper.</param>
 /// <param name="managerDashboardHelper">Holds the instance of manager dashboard helper.</param>
 /// <param name="timesheetHelper">Holds the instance of timesheet helper.</param>
 public ProjectController(
     ILogger <ProjectController> logger,
     IRepositoryAccessors repositoryAccessor,
     IProjectHelper projectHelper,
     IUserHelper userHelper,
     IManagerDashboardHelper managerDashboardHelper,
     TelemetryClient telemetryClient,
     ITaskMapper taskMapper,
     ITaskHelper taskHelper,
     ITimesheetHelper timesheetHelper)
     : base(telemetryClient)
 {
     this.projectHelper          = projectHelper;
     this.userHelper             = userHelper;
     this.managerDashboardHelper = managerDashboardHelper;
     this.logger             = logger;
     this.taskMapper         = taskMapper;
     this.taskHelper         = taskHelper;
     this.repositoryAccessor = repositoryAccessor;
     this.timesheetHelper    = timesheetHelper;
 }
Ejemplo n.º 5
0
 public TimesheetClient()
 {
     TimesheetHelper = new TimesheetHelper();
 }