internal override void validateMethod(MethodSlot method)
 {
     if (!method.DeclaredByAggregate && method.Method.GetParameters().All(x => x.ParameterType != AggregateType))
     {
         method.AddError($"Aggregate type '{AggregateType.FullNameInCode()}' is required as a parameter");
     }
 }
Exemple #2
0
 internal override void validateMethod(MethodSlot method)
 {
     if (!method.Method.GetParameters().Any())
     {
         method.AddError($"ShouldDelete() requires at least one argument (the event type, the aggregate type, or IQuerySession)");
     }
 }