Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TimeOffRequestsController"/> class.
 /// </summary>
 /// <param name="appSettings">Configuration DI.</param>
 /// <param name="telemetryClient">Telemetry Client.</param>
 /// <param name="userMappingProvider">User To User Mapping Provider.</param>
 /// <param name="createTimeOffActivity">Create time off activity.</param>
 /// <param name="timeOffReasonProvider">Paycodes to Time Off Reasons Mapping provider.</param>
 /// <param name="utility">The local Utility DI.</param>
 /// <param name="azureTableStorageHelper">The Azure table storage helper.</param>
 /// <param name="timeOffReqMappingEntityProvider">time off entity provider.</param>
 /// <param name="teamDepartmentMappingProvider">TeamDepartmentMapping provider DI.</param>
 /// <param name="httpClientFactory">http client.</param>
 /// <param name="taskWrapper">Wrapper class instance for BackgroundTask.</param>
 public TimeOffRequestsController(
     AppSettings appSettings,
     TelemetryClient telemetryClient,
     ICreateTimeOffActivity createTimeOffActivity,
     IUserMappingProvider userMappingProvider,
     ITimeOffReasonProvider timeOffReasonProvider,
     IAzureTableStorageHelper azureTableStorageHelper,
     ITimeOffRequestProvider timeOffReqMappingEntityProvider,
     ITeamDepartmentMappingProvider teamDepartmentMappingProvider,
     Utility utility,
     IHttpClientFactory httpClientFactory,
     BackgroundTaskWrapper taskWrapper)
 {
     this.appSettings                     = appSettings;
     this.telemetryClient                 = telemetryClient;
     this.createTimeOffActivity           = createTimeOffActivity;
     this.userMappingProvider             = userMappingProvider;
     this.timeOffReasonProvider           = timeOffReasonProvider;
     this.azureTableStorageHelper         = azureTableStorageHelper;
     this.timeOffReqMappingEntityProvider = timeOffReqMappingEntityProvider;
     this.teamDepartmentMappingProvider   = teamDepartmentMappingProvider;
     this.utility           = utility;
     this.httpClientFactory = httpClientFactory;
     this.taskWrapper       = taskWrapper;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TimeOffController"/> class.
 /// </summary>
 /// <param name="appSettings">Application Settings DI.</param>
 /// <param name="telemetryClient">ApplicationInsights DI.</param>
 /// <param name="userMappingProvider">The User Mapping Provider DI.</param>
 /// <param name="timeOffActivity">Time Off Activity DI.</param>
 /// <param name="timeOffReasonProvider">Time Off Reason Provider DI.</param>
 /// <param name="azureTableStorageHelper">Azure Storage Helper DI.</param>
 /// <param name="timeOffMappingEntityProvider">Time Off Mapping Provider DI.</param>
 /// <param name="utility">Utility DI.</param>
 /// <param name="teamDepartmentMappingProvider">Team Department Mapping Provider DI.</param>
 /// <param name="httpClientFactory">HttpClientFactory DI.</param>
 /// <param name="taskWrapper">Wrapper class instance for BackgroundTask.</param>
 public TimeOffController(
     AppSettings appSettings,
     TelemetryClient telemetryClient,
     IUserMappingProvider userMappingProvider,
     ITimeOffActivity timeOffActivity,
     ITimeOffReasonProvider timeOffReasonProvider,
     IAzureTableStorageHelper azureTableStorageHelper,
     ITimeOffMappingEntityProvider timeOffMappingEntityProvider,
     Utility utility,
     ITeamDepartmentMappingProvider teamDepartmentMappingProvider,
     IHttpClientFactory httpClientFactory,
     BackgroundTaskWrapper taskWrapper)
 {
     this.appSettings                  = appSettings;
     this.telemetryClient              = telemetryClient;
     this.userMappingProvider          = userMappingProvider;
     this.timeOffActivity              = timeOffActivity;
     this.timeOffReasonProvider        = timeOffReasonProvider;
     this.azureTableStorageHelper      = azureTableStorageHelper;
     this.timeOffMappingEntityProvider = timeOffMappingEntityProvider ?? throw new ArgumentNullException(nameof(timeOffMappingEntityProvider));
     this.utility = utility;
     this.teamDepartmentMappingProvider = teamDepartmentMappingProvider;
     this.httpClientFactory             = httpClientFactory;
     this.taskWrapper = taskWrapper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamOvertimesDialog" /> class.
 /// </summary>
 /// <param name="response">LoginResponse object.</param>
 /// <param name="authenticationService">AuthenticationService object.</param>
 /// <param name="hoursWorkedActivity">HoursWorkedActivity object.</param>
 /// <param name="hyperFindActivity">HyperFindActivity object.</param>
 /// <param name="jobAssignment">JobAssignmentActivity object.</param>
 /// <param name="authenticateUser">AuthenticateUser object.</param>
 /// <param name="teamOvertimesCard">CarouselTeamOvertimes object.</param>
 /// <param name="azureTableStorageHelper">AzureTableStorageHelper object.</param>
 /// <param name="dateRangeCard">AdaptiveDateRange object.</param>
 /// <param name="adaptiveTeamOvertimesCard">TeamOvertimesCard object.</param>
 /// <param name="upcomingShiftsActivity">UpcomingShiftsActivity object.</param>
 public TeamOvertimesDialog(
     LoginResponse response,
     IAuthenticationService authenticationService,
     IHoursWorkedActivity hoursWorkedActivity,
     IHyperFindActivity hyperFindActivity,
     IJobAssignmentActivity jobAssignment,
     AuthenticateUser authenticateUser,
     CarouselTeamOvertimes teamOvertimesCard,
     IAzureTableStorageHelper azureTableStorageHelper,
     AdaptiveDateRange dateRangeCard,
     TeamOvertimesCard adaptiveTeamOvertimesCard,
     IUpcomingShiftsActivity upcomingShiftsActivity)
 {
     this.response = response;
     this.authenticationService     = authenticationService;
     this.hoursWorkedActivity       = hoursWorkedActivity;
     this.hyperFindActivity         = hyperFindActivity;
     this.authenticateUser          = authenticateUser;
     this.jobAssignment             = jobAssignment;
     this.teamOvertimesCard         = teamOvertimesCard;
     this.azureTableStorageHelper   = azureTableStorageHelper;
     this.dateRangeCard             = dateRangeCard;
     this.adaptiveTeamOvertimesCard = adaptiveTeamOvertimesCard;
     this.upcomingShiftsActivity    = upcomingShiftsActivity;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SwapShiftMappingEntityProvider"/> class.
 /// </summary>
 /// <param name="telemetryClient">ApplicationInsights DI.</param>
 /// <param name="connectionString">The Azure table storage connection string.</param>
 /// <param name="azureTableStorageHelper">Azure helper class.</param>
 public SwapShiftMappingEntityProvider(
     TelemetryClient telemetryClient,
     string connectionString,
     IAzureTableStorageHelper azureTableStorageHelper)
 {
     this.telemetryClient         = telemetryClient;
     this.initializeTask          = new Lazy <Task>(() => this.InitializeAsync(connectionString));
     this.azureTableStorageHelper = azureTableStorageHelper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticateUser"/> class.
 /// </summary>
 /// <param name="response">login response.</param>
 /// <param name="authenticationService">authentication service.</param>
 /// <param name="roleActivity">role activity.</param>
 /// <param name="azureTableStorageHelper">table storage helper.</param>
 /// <param name="viewBalanceActivity">ViewBalance activity.</param>
 /// <param name="botUserEntity">bot user entity.</param>
 public AuthenticateUser(LoginResponse response, IAuthenticationService authenticationService, IRoleActivity roleActivity, IAzureTableStorageHelper azureTableStorageHelper, IViewVacationBalanceActivity viewBalanceActivity, BotUserEntity botUserEntity)
 {
     this.response = response;
     this.authenticationService   = authenticationService;
     this.roleActivity            = roleActivity;
     this.azureTableStorageHelper = azureTableStorageHelper;
     this.viewBalanceActivity     = viewBalanceActivity;
     this.botUserEntity           = botUserEntity;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ScheduleDialog"/> class.
 /// </summary>
 /// <param name="scheduleActivity">schedule activity.</param>
 /// <param name="authenticationService">authentication service.</param>
 /// <param name="hoursWorkedActivity">hours worked activity.</param>
 /// <param name="azureTableStorageHelper">azure table storage helper.</param>
 /// <param name="response">login response.</param>
 /// <param name="adaptiveSchedule">schedule card.</param>
 public ScheduleDialog(IScheduleActivity scheduleActivity, IAuthenticationService authenticationService, IHoursWorkedActivity hoursWorkedActivity, IAzureTableStorageHelper azureTableStorageHelper, LoginResponse response, HeroShowSchedule heroShowSchedule)
 {
     this.scheduleActivity        = scheduleActivity;
     this.authenticationService   = authenticationService;
     this.hoursWorkedActivity     = hoursWorkedActivity;
     this.azureTableStorageHelper = azureTableStorageHelper;
     this.response         = response;
     this.heroShowSchedule = heroShowSchedule;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TimeOffDialog"/> class.
 /// </summary>
 /// <param name="azureTableStorageHelper">Azure table storage.</param>
 /// <param name="commentsActivity">Comments activity.</param>
 /// <param name="roleActivity">Tole activity.</param>
 /// <param name="response">Login response.</param>
 /// <param name="authenticationService">Authentication service.</param>
 /// <param name="timeOffActivity">Timeoff activity.</param>
 /// <param name="timeOffCard">Timeoff card.</param>
 /// <param name="commonActivity">Common activty.</param>
 public TimeOffDialog(IAzureTableStorageHelper azureTableStorageHelper, ICommentsActivity commentsActivity, IRoleActivity roleActivity, LoginResponse response, IAuthenticationService authenticationService, ITimeOffActivity timeOffActivity, TimeOffRequestCard timeOffCard, ICommonActivity commonActivity)
 {
     this.timeOffCard             = timeOffCard;
     this.response                = response;
     this.authenticationService   = authenticationService;
     this.timeOffActivity         = timeOffActivity;
     this.commonActivity          = commonActivity;
     this.roleActivity            = roleActivity;
     this.commentsActivity        = commentsActivity;
     this.azureTableStorageHelper = azureTableStorageHelper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="OnLeaveDialog"/> class.
 /// </summary>
 /// <param name="authenticationService">authentication service.</param>
 /// <param name="hyperFindActivity">hyperFind activity.</param>
 /// <param name="supervisorViewTimeOffActivity">time off activity.</param>
 /// <param name="azureTableStorageHelper">azure table storage helper.</param>
 /// <param name="response">login response.</param>
 /// <param name="heroLeaveCard">leave card.</param>
 public OnLeaveDialog(
     IAuthenticationService authenticationService,
     IHyperFindActivity hyperFindActivity,
     ISupervisorViewTimeOffActivity supervisorViewTimeOffActivity,
     IAzureTableStorageHelper azureTableStorageHelper,
     LoginResponse response,
     HeroLeaveCard heroLeaveCard)
 {
     this.authenticationService         = authenticationService;
     this.hyperFindActivity             = hyperFindActivity;
     this.supervisorViewTimeOffActivity = supervisorViewTimeOffActivity;
     this.azureTableStorageHelper       = azureTableStorageHelper;
     this.response      = response;
     this.heroLeaveCard = heroLeaveCard;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShowHoursWorkedDialog"/> class.
 /// </summary>
 /// <param name="response">LoginResponse object.</param>
 /// <param name="authenticationService">AuthenticationService object.</param>
 /// <param name="hoursWorkedActivity">HoursWorkedActivity object.</param>
 /// <param name="showHoursWorkedCard">CarouselShowHoursWorked object.</param>
 /// <param name="azureTableStorageHelper">AzureTableStorageHelper object.</param>
 /// <param name="dateRangeCard">AdaptiveDateRange object.</param>
 public ShowHoursWorkedDialog(
     LoginResponse response,
     IAuthenticationService authenticationService,
     IHoursWorkedActivity hoursWorkedActivity,
     CarouselShowHoursWorked showHoursWorkedCard,
     IAzureTableStorageHelper azureTableStorageHelper,
     AdaptiveDateRange dateRangeCard)
 {
     this.response = response;
     this.authenticationService   = authenticationService;
     this.hoursWorkedActivity     = hoursWorkedActivity;
     this.showHoursWorkedCard     = showHoursWorkedCard;
     this.azureTableStorageHelper = azureTableStorageHelper;
     this.dateRangeCard           = dateRangeCard;
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Utility"/> class.
 /// </summary>
 /// <param name="telemetryClient">ApplicationInsights DI.</param>
 /// <param name="logonActivity">Kronos Logon activity DI.</param>
 /// <param name="appSettings">Application Settings DI.</param>
 /// <param name="cache">Distributed cache DI.</param>
 /// <param name="configurationProvider">Configuration provider DI.</param>
 /// <param name="azureTableStorageHelper">Azure table storage DI.</param>
 /// <param name="graphUtility">Graph utility methods DI.</param>
 public Utility(
     TelemetryClient telemetryClient,
     ILogonActivity logonActivity,
     AppSettings appSettings,
     IDistributedCache cache,
     IConfigurationProvider configurationProvider,
     IAzureTableStorageHelper azureTableStorageHelper,
     IGraphUtility graphUtility)
 {
     this.telemetryClient         = telemetryClient;
     this.appSettings             = appSettings;
     this.cache                   = cache;
     this.logonActivity           = logonActivity;
     this.configurationProvider   = configurationProvider;
     this.azureTableStorageHelper = azureTableStorageHelper;
     this.graphUtility            = graphUtility;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShowPunchesDialog" /> class.
 /// </summary>
 /// <param name="response">LoginResponse object.</param>
 /// <param name="authenticationService">AuthenticationService object.</param>
 /// <param name="showPunchesActivity">ShowPunchesActivity object.</param>
 /// <param name="upcomingShiftsActivity">Upcoming shift object.</param>
 /// <param name="azureTableStorageHelper">Azure table storage object.</param>
 /// <param name="showPunchesCard">HeroShowPunches object.</param>
 /// <param name="showPunchesDataCard">AdaptiveShowPunches object.</param>
 /// <param name="dateRangeCard">AdaptiveDateRange object.</param>
 public ShowPunchesDialog(
     LoginResponse response,
     IAuthenticationService authenticationService,
     IShowPunchesActivity showPunchesActivity,
     IUpcomingShiftsActivity upcomingShiftsActivity,
     IAzureTableStorageHelper azureTableStorageHelper,
     HeroShowPunches showPunchesCard,
     AdaptiveShowPunches showPunchesDataCard,
     AdaptiveDateRange dateRangeCard)
 {
     this.response = response;
     this.authenticationService   = authenticationService;
     this.showPunchesActivity     = showPunchesActivity;
     this.upcomingShiftsActivity  = upcomingShiftsActivity;
     this.azureTableStorageHelper = azureTableStorageHelper;
     this.showPunchesCard         = showPunchesCard;
     this.showPunchesDataCard     = showPunchesDataCard;
     this.dateRangeCard           = dateRangeCard;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TimeOffReasonController"/> class.
 /// </summary>
 /// <param name="telemetryClient">ApplicationInsights DI.</param>
 /// <param name="azureTableStorageHelper">The Azure Table Storage Helper DI.</param>
 /// <param name="timeOffReasonProvider">The time off reason provider DI.</param>
 /// <param name="payCodeActivity">The paycode activity DI.</param>
 /// <param name="appSettings">Application Settings DI.</param>
 /// <param name="httpClientFactory">Http Client Factory DI.</param>
 /// <param name="teamDepartmentMappingProvider">Team department mapping provider DI.</param>
 /// <param name="utility">Utility common methods DI.</param>
 public TimeOffReasonController(
     TelemetryClient telemetryClient,
     IAzureTableStorageHelper azureTableStorageHelper,
     ITimeOffReasonProvider timeOffReasonProvider,
     IPayCodeActivity payCodeActivity,
     AppSettings appSettings,
     IHttpClientFactory httpClientFactory,
     ITeamDepartmentMappingProvider teamDepartmentMappingProvider,
     Utility utility)
 {
     this.telemetryClient         = telemetryClient;
     this.azureTableStorageHelper = azureTableStorageHelper;
     this.appSettings             = appSettings;
     this.payCodeActivity         = payCodeActivity;
     this.timeOffReasonProvider   = timeOffReasonProvider;
     this.tenantId                      = this.appSettings?.TenantId;
     this.httpClientFactory             = httpClientFactory;
     this.teamDepartmentMappingProvider = teamDepartmentMappingProvider;
     this.utility = utility;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShowPunchesActivity" /> class
 /// </summary>
 /// <param name="azureTableStorageHelper">Azure table storage helper</param>
 public ShowPunchesActivity(IAzureTableStorageHelper azureTableStorageHelper)
 {
     this._azureTableStorageHelper = azureTableStorageHelper;
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScheduleActivity" /> class
 /// </summary>
 /// <param name="azureTableStorageHelper">Azure table storage helper</param>
 public ScheduleActivity(IAzureTableStorageHelper azureTableStorageHelper)
 {
     this.azureTableStorageHelper = azureTableStorageHelper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HoursWorkedActivity" /> class.
 /// </summary>
 /// <param name="azureTableStorageHelper">Azure table storage helper</param>
 public HoursWorkedActivity(IAzureTableStorageHelper azureTableStorageHelper)
 {
     this._azureTableStorageHelper = azureTableStorageHelper;
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AddPunchActivity" /> class
 /// </summary>
 /// <param name="azureTableStorageHelper">Azure table storage helper</param>
 public AddPunchActivity(IAzureTableStorageHelper azureTableStorageHelper)
 {
     this._azureTableStorageHelper = azureTableStorageHelper;
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HyperFindActivity" /> class.
 /// </summary>
 /// <param name="azureTableStorageHelper">Azure Table Storage helper</param>
 public HyperFindActivity(IAzureTableStorageHelper azureTableStorageHelper)
 {
     this.azureTableStorageHelper = azureTableStorageHelper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="JobAssignmentActivity" /> class
 /// </summary>
 public JobAssignmentActivity(IAzureTableStorageHelper azureTableStorageHelper)
 {
     this.azureTableStorageHelper = azureTableStorageHelper;
 }
Ejemplo n.º 19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LogonActivity" /> class.
 /// </summary>
 /// <param name="loginRequest">Login Request.</param>
 /// <param name="azureTableStorageHelper">Azure table storage helper.</param>
 public LogonActivity(Request loginRequest, IAzureTableStorageHelper azureTableStorageHelper)
 {
     this.loginRequest            = loginRequest;
     this.azureTableStorageHelper = azureTableStorageHelper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ViewVacationBalanceActivity" /> class.
 /// </summary>
 /// <param name="azureTableStorageHelper">Azure Table Storage helper.</param>
 public ViewVacationBalanceActivity(IAzureTableStorageHelper azureTableStorageHelper)
 {
     this.azureTableStorageHelper = azureTableStorageHelper;
 }
Ejemplo n.º 21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PresentEmployeesActivity" /> class
 /// </summary>
 /// <param name="azureTableStorageHelper">Azure table storage helper</param>
 public PresentEmployeesActivity(IAzureTableStorageHelper azureTableStorageHelper)
 {
     this._azureTableStorageHelper = azureTableStorageHelper;
 }
Ejemplo n.º 22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpcomingShiftsActivity" /> class
 /// </summary>
 /// <param name="azureTableStorageHelper">Azure table storage helper</param>
 public UpcomingShiftsActivity(IAzureTableStorageHelper azureTableStorageHelper)
 {
     this.azureTableStorageHelper = azureTableStorageHelper;
 }