コード例 #1
0
        public void Test_without_calcule_FamilyAgeApplicantScore()
        {
            var TOTAL_SCORE = 0;

            var score = ScoreFactory.CreateScoreRule <FamilyAgeApplicantScore>(TestFamily);

            Assert.Equal(TOTAL_SCORE, score.Score);
            Assert.False(score.IsClassified);
        }
コード例 #2
0
        public void Test_calcule_FamilyIncomeScore_ok()
        {
            var TOTAL_SCORE = 5;

            var score = ScoreFactory.CreateScoreRule <FamilyIncomeScore>(TestFamily);

            score.CalculateScore();

            Assert.Equal(TOTAL_SCORE, score.Score);
            Assert.True(score.IsClassified);
        }