public string GetRedResult() { if (RedCondition != null && RedCondition.IsValid()) { return(RedCondition.GetResult(Area.ConnectionString)); } else { throw new DomainException("Condition is not valid"); } }
public bool IsRedOn() { return(RedCondition.Eval(Area.ConnectionString)); }
public bool IsValid() { return(Id != null && Name != null && GreenCondition != null && YellowCondition != null && RedCondition != null && GreenCondition.IsValid() && YellowCondition.IsValid() && RedCondition.IsValid()); }