/// <summary>
        /// Gets the parameter string.
        /// </summary>
        /// <returns>Returns all the parameters as a string.</returns>
        public override string ToString()
        {
            var and        = string.Empty;
            var assessment = string.Empty;

            if (AssessmentName != null)
            {
                assessment = AssessmentName;
            }
            var returnString = " " + Report.Of + assessment;

            if (TimePeriod != null && !string.IsNullOrEmpty(TimePeriod.Code))
            {
                var resources = IoC.CurrentContainer.Resolve <IResourcesManager> ();
                returnString += " " + resources.GetResourceManagerByName("ReportTimePeriod").GetString(TimePeriod.Code);
            }
            else
            {
                returnString += " " + StartDate.GetValueOrDefault().ToShortDateString() + " " + Report.ToLowerCase + " " + EndDate.GetValueOrDefault().ToShortDateString();
            }
            if (AgeRangeLow != null && AgeRangeHigh != null)
            {
                returnString += " " + Report.AgeRange + " " + AgeRangeLow + " " + Report.To + " " + AgeRangeHigh;
                and           = Report.And;
            }
            if (Gender != null && Gender.Code != null)
            {
                returnString += " " + and + " " + Report.Gender + " " + Gender.Code;
                and           = Report.And;
            }
            if (ScoreType != null)
            {
                if (ScoreType.GetType() == typeof(ScoreTypeIntDto) && (((ScoreTypeIntDto)ScoreType).RiskStart > 0 || ((ScoreTypeIntDto)ScoreType).RiskEnd > 0))
                {
                    returnString += " " +
                                    and + " " +
                                    Report.ScoreRange + " " +
                                    ((ScoreTypeIntDto)ScoreType).RiskStart +
                                    " " + Report.To +
                                    " " + ((ScoreTypeIntDto)ScoreType).RiskEnd;
                }
                else if (ScoreType.GetType() == typeof(ScoreTypeBooleanDto))
                {
                    returnString += " " + and + " " + Report.IsAtRisk + " " + ((ScoreTypeBooleanDto)ScoreType).IsAtRisk;
                }
            }
            return(returnString);
        }