public MultiplicationResult(MultiplicationProblem problem, MultiplicationEngine engine) { _engine = engine; Problem = problem; IsCorrect = _engine.Evaluate(Problem); }
public bool Evaluate(MultiplicationProblem problem) { return(problem.Answer == problem.Multiple * problem.Multiplier); }