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; }
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); }
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"); }
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"); }