Exemplo n.º 1
0
        public string LastYearCameAnalysis(CityDomain intialCityDomain, CityDomain currentCityDomain)
        {
            var sb = new StringBuilder($"Congratulations!!! You have live to the last year!{_lineSeparator}");

            int compareResult = currentCityDomain.CompareTo(intialCityDomain);

            switch (compareResult)
            {
            case 1:
                sb.Append("You could exaggerate the wealth of your city!!! You are a great ruler!");
                break;

            case -1:
                sb.Append("But you failed to maintain the stability of the city(");
                break;

            default:
                sb.Append("Stability is a sign of skill! The state of the city did not change in any way");
                break;
            }
            sb.Append(_lineSeparator);

            return(sb.ToString());
        }