Esempio n. 1
0
        string GetWhy(Step stepAction, ReasonXml reason, LogCase logCase)
        {
            string why = reason.Why;

            if (logCase == LogCase.Singular && reason.WhySingular != null)
                why = reason.WhySingular;
            else if (logCase == LogCase.Plural && reason.WhyPlural != null)
                why = reason.WhyPlural;

            return Helper.ReplaceReasonPlaceholders(stepAction, why);
        }
Esempio n. 2
0
        string GetDetail(Step stepAction, ReasonXml reason, LogCase logCase)
        {
            string detail = reason.Detail;

            if (logCase == LogCase.Singular && reason.DetailSingular != null)
                detail = reason.DetailSingular;
            else if (logCase == LogCase.Plural && reason.DetailPlural != null)
                detail = reason.DetailPlural;

            return Helper.ReplaceReasonPlaceholders(stepAction, detail);
        }