public SimpleCase When(Expression whenExpression, Expression resultExpression)
{
if (whenExpression == null) {
throw new ArgumentNullException("whenExpression");
}
if (resultExpression == null) {
throw new ArgumentNullException("resultExpression");
}
this.conditions.Add(new SimpleCaseCondition(whenExpression, resultExpression));
return this;
}