Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TimesheetHelper"/> class.
 /// </summary>
 /// <param name="botOptions">A set of key/value application configuration properties.</param>
 /// <param name="repositoryAccessors">The instance of repository accessors.</param>
 /// <param name="timesheetMapper">The instance of timesheet mapper.</param>
 /// <param name="logger">The ILogger object which logs errors and information.</param>
 public TimesheetHelper(
     IOptions <BotSettings> botOptions,
     IRepositoryAccessors repositoryAccessors,
     ITimesheetMapper timesheetMapper,
     ILogger <TimesheetHelper> logger)
 {
     this.repositoryAccessors = repositoryAccessors;
     this.timesheetMapper     = timesheetMapper;
     this.logger     = logger;
     this.botOptions = botOptions;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TimesheetHelper"/> class.
 /// </summary>
 /// <param name="botOptions">A set of key/value application configuration properties.</param>
 /// <param name="repositoryAccessors">The instance of repository accessors.</param>
 /// <param name="timesheetMapper">The instance of timesheet mapper.</param>
 /// <param name="logger">The ILogger object which logs errors and information.</param>
 /// <param name="notificationHelper">Notification helper instance to send notifications to user.</param>
 /// <param name="adaptiveCardService">Instance of adaptive card service to construct notification cards.</param>
 public TimesheetHelper(
     IOptions <BotSettings> botOptions,
     IRepositoryAccessors repositoryAccessors,
     ITimesheetMapper timesheetMapper,
     ILogger <TimesheetHelper> logger,
     INotificationHelper notificationHelper,
     IAdaptiveCardService adaptiveCardService)
 {
     this.repositoryAccessors = repositoryAccessors;
     this.timesheetMapper     = timesheetMapper;
     this.logger              = logger;
     this.botOptions          = botOptions;
     this.notificationHelper  = notificationHelper;
     this.adaptiveCardService = adaptiveCardService;
 }