Ejemplo n.º 1
0
 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");
     }
 }
Ejemplo n.º 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)");
     }
 }