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