public ActionResult Index(string probA, string probB, string result, string calculationType)
        {
            Calculation calc = new Calculation( probA,  probB,  result,  calculationType);

            CalculationLogger logger = new CalculationLogger(calc);

            logger.log();

            return View();
        }
 public void Test_303_calculationType_Either_SetsEnum()
 {
     Calculation calc = new Calculation("0.2", "0.2", "0.2", "Either");
     Assert.AreEqual(CalculationType.Either.ToString(), calc.CalculationType.ToString());
 }
 public void Test_302_calculationType_Combined_SetsEnum()
 {
     Calculation calc = new Calculation("0.2", "0.2", "0.2", "Combined");
     Assert.AreEqual(CalculationType.Combined.ToString(), calc.CalculationType.ToString());
 }
 public CalculationLogger(Calculation calc)
 {
     this._calc = calc;
 }