예제 #1
0
        public Evaluation ProgressEvaluation(string evaluationId, Progression newProgression)
        {
            _authService.AssertIsFacilitator(evaluationId);
            Evaluation evaluation = _evaluationService.GetEvaluation(evaluationId);

            _evaluationService.ProgressEvaluation(evaluation, newProgression);

            _participantService.ProgressAllParticipants(evaluation, newProgression);

            if (newProgression.Equals(Progression.FollowUp))
            {
                _answerService.CreateFollowUpAnswers(evaluation);
            }

            return(evaluation);
        }
예제 #2
0
        public Evaluation ProgressEvaluation(string evaluationId, Progression newProgression)
        {
            Evaluation evaluation = _evaluationService.GetEvaluation(evaluationId);

            Role[] canBePerformedBy = { Role.Facilitator };
            AssertCanPerformMutation(evaluation, canBePerformedBy);

            _evaluationService.ProgressEvaluation(evaluation, newProgression);

            _participantService.ProgressAllParticipants(evaluation, newProgression);

            if (newProgression.Equals(Progression.FollowUp))
            {
                _evaluationService.SetWorkshopCompleteDate(evaluation);
                _answerService.CreateFollowUpAnswers(evaluation);
            }

            return(evaluation);
        }
        public bool Equals(DestinyVendorComponent input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     CanPurchase == input.CanPurchase ||
                     (CanPurchase != null && CanPurchase.Equals(input.CanPurchase))
                     ) &&
                 (
                     Progression == input.Progression ||
                     (Progression != null && Progression.Equals(input.Progression))
                 ) &&
                 (
                     VendorLocationIndex == input.VendorLocationIndex ||
                     (VendorLocationIndex.Equals(input.VendorLocationIndex))
                 ) &&
                 (
                     SeasonalRank == input.SeasonalRank ||
                     (SeasonalRank.Equals(input.SeasonalRank))
                 ) &&
                 (
                     VendorHash == input.VendorHash ||
                     (VendorHash.Equals(input.VendorHash))
                 ) &&
                 (
                     NextRefreshDate == input.NextRefreshDate ||
                     (NextRefreshDate != null && NextRefreshDate.Equals(input.NextRefreshDate))
                 ) &&
                 (
                     Enabled == input.Enabled ||
                     (Enabled != null && Enabled.Equals(input.Enabled))
                 ));
        }