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"); } }
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)"); } }