Exemple #1
0
 string AskExpert(Answers answers)
 {
     //if (answers.IsYourMamaFat == "yes") //rewrite this method without words true, false, else, if
     //    return "no";
     //else
     //    return "yes";
     string ExpertsAnswer = answers.IsYourMamaFat == "yes" ? "no" : "yes";
     return ExpertsAnswer;
 }
Exemple #2
0
        public void TestNoBundleAvailable()
        {
            //Arrange
            var id      = 0;
            var age     = "18-64";
            var student = "No";
            var income  = "0";

            //Act
            Answers answers = new Answers(id, age, student, income);
            Bundle  bundle  = GetBundle.ReturnBundle(answers);

            //Assert
            Assert.IsNull(bundle);
        }
Exemple #3
0
        public void TestGold()
        {
            //Arrange
            var id      = 0;
            var age     = "18-64";
            var student = "Yes";
            var income  = "40001+";

            //Act
            Answers answers = new Answers(id, age, student, income);
            Bundle  bundle  = GetBundle.ReturnBundle(answers);

            //Assert
            Assert.AreEqual(bundle.Name, "Gold");
        }
Exemple #4
0
        public void TestJunior()
        {
            //Arrange
            var id      = 0;
            var age     = "0-17";
            var student = "Yes";
            var income  = "0";

            //Act
            Answers answers = new Answers(id, age, student, income);
            Bundle  bundle  = GetBundle.ReturnBundle(answers);

            //Assert
            Assert.AreEqual(bundle.Name, "Junior Saver");
        }