public void Activate(Guid id, string activationCode)
        {
            Condition.Requires(id);
            Condition.Requires(activationCode).IsNotNullOrEmpty();

            _logger.Info("Calling CandidateService to activate the user with id {0}.", id);

            _activateCandidateStrategy.ActivateCandidate(id, activationCode);
        }
Пример #2
0
        public void Activate(string username, string activationCode)
        {
            Condition.Requires(username).IsNotNullOrEmpty();
            Condition.Requires(activationCode).IsNotNullOrEmpty();

            _logger.Info("Calling CandidateService to activate the user {0}.", username);

            _activateCandidateStrategy.ActivateCandidate(username, activationCode);
        }