public DeleteTeamEmployeePreCommand(IConnectionManager connectionManager, ITeamManagementEmployeeService service, ITeamManagementEmployeeValidatorResolver validatorResolver) { if (service == null) throw new ArgumentNullException("service"); if (validatorResolver == null) throw new ArgumentNullException("validatorResolver"); ConnectionManager = connectionManager; this.service = service; this.validatorResolver = validatorResolver; }
public TeamManagementController(ITeamManagementEmployeeService service, Func<CreateTeamEmployeePreCommand> createTeamEmployeePreCommandAccessor, Func<DeleteTeamEmployeePreCommand> deleteTeamEmployeePreCommandAccessor, Func<RenameTeamEmployeePreCommand> renameTeamEmployeePreCommandAccessor, Func<RenameJobTitlePreCommand> renameJobTitlePreCommandAccessor, Func<UpdateSummaryPreCommand> updateSummaryPreCommandAccessor, ICurrentlyViewingUserService currentlyViewingUserService, IProvideCurrentUserDetails currentUserDetails, Func<UpdateTeamEmployeeProfileImagePreCommand> updateTeamEmployeeProfileImagePreCommandAccessor) { if (service == null) throw new ArgumentNullException("service"); this.service = service; this.createTeamEmployeePreCommandAccessor = createTeamEmployeePreCommandAccessor; this.deleteTeamEmployeePreCommandAccessor = deleteTeamEmployeePreCommandAccessor; this.renameTeamEmployeePreCommandAccessor = renameTeamEmployeePreCommandAccessor; this.renameJobTitlePreCommandAccessor = renameJobTitlePreCommandAccessor; this.updateSummaryPreCommandAccessor = updateSummaryPreCommandAccessor; this.currentlyViewingUserService = currentlyViewingUserService; this.currentUserDetails = currentUserDetails; this.updateTeamEmployeeProfileImagePreCommandAccessor = updateTeamEmployeeProfileImagePreCommandAccessor; }