public ISentence GetNextSentence(string incomingSentence)
        {
            if (AnswerParser.IsAnswerNegative(incomingSentence))
            {
                return(new DeclareNextSteps("Sure, I’ll be around, when you come back just say Hi and we can pick up here. I will send you a checklist of documents I’ll need and also a link to upload them if you’d like to do that at your convenience."));
            }

            return(new UploadOtherAssetsAndDebts());
        }
示例#2
0
        //public int GetNextTransitionQuestion => 3;
        //public int GetNextClarifyingQuestion => 2;
        //public int GetNextQuestion(string answer)
        //{
        //    var isNegative = AnswerParser.IsAnswerNegative(answer);
        //    return isNegative ? 2 : 3;
        //}

        public ISentence GetNextSentence(string incomingSentence)
        {
            var isNegative = AnswerParser.IsAnswerNegative(incomingSentence);

            if (isNegative)
            {
                return(new NullSentence());
            }
            return(new HaveYouAreadyDecidedOnAHome());
        }
示例#3
0
        public ISentence GetNextSentence(string incomingSentence)
        {
            //var number = Regex.Replace(incomingSentence, @"[^\d]", "");
            if (AnswerParser.IsAnswerNegative(incomingSentence))
            {
                Synonyms.UpdateSynonym("75 large", "$75,000");
                return(new AssertSalary("Oh gotcha, $75,000"));
            }

            return(new OkProvidingAssetsAndDebts());
        }