Ejemplo n.º 1
0
        public void Setup()
        {
            likesBlueQuestion = Question.ForAnswer<EndResultModel>(x => x.LikesBlue);
            likesGreenQuestion = Question.ForAnswer<EndResultModel>(x => x.LikesGreen);
            likesRedQuestion = Question.ForAnswer<EndResultModel>(x => x.LikesRed);
            birthdayQuestion = Question.ForAnswer<EndResultModel>(x => x.Birthday);

            likesBlueQuestion
                .OnYes(
                    x => birthdayQuestion.OnNext(
                        b => likesGreenQuestion.OnYes(
                            m => likesRedQuestion))
                );

            theQuestion = likesBlueQuestion;
        }