Example #1
0
 public IRuleResult RuleExecuted(Solbot solbot)
 => new SequencedRuleResult
 {
     Success = Enum.IsDefined(typeof(AverageType), solbot.Strategy.AvailableStrategy.AverageType),
     Message = solbot.Strategy.AvailableStrategy.AverageType == AverageType.WITH_CURRENT
             ? LogGenerator.AverageTypeSuccess(SequenceName, solbot.Strategy.AvailableStrategy.AverageType.GetDescription())
             : LogGenerator.AverageTypeError(SequenceName, solbot.Strategy.AvailableStrategy.AverageType.GetDescription())
 };