public SessionController(IConferenceLoader conferenceLoader, IUserProfileRepository userProfileRepository, ISessionRepository sessionRepository, ISessionSorter sorter, EmailMessengerFactory messengerFactory)
 {
     this.conferenceLoader = conferenceLoader;
     this.userProfileRepository = userProfileRepository;
     this.sessionRepository = sessionRepository;
     sessionSorter = sorter;
     emailMessengerFactory = messengerFactory;
 }
        public ResetPasswordController(IUserProfileRepository userProfileRepository, IResetPasswordService resetPasswordService, EmailMessengerFactory emailMessengerFactory)
        {
            if (userProfileRepository == null)
            {
                throw new ArgumentNullException("userProfileRepository");
            }

            if (resetPasswordService == null)
            {
                throw new ArgumentNullException("resetPasswordService");
            }

            if (emailMessengerFactory == null)
            {
                throw new ArgumentNullException("emailMessengerFactory");
            }

            this.userProfileRepository = userProfileRepository;
            this.resetPasswordService = resetPasswordService;
            this.emailMessengerFactory = emailMessengerFactory;
        }