oasuncion / tradista

Tradista: the first open source Financial Risk Management Solution
Apache License 2.0
9 stars 3 forks source link

Refactoring PricingParameterModuleValidator #108

Closed oasuncion closed 5 months ago

oasuncion commented 5 months ago

It appears that only the PricingParameters's PO is useful in the validation made in the method #checkModule of the class PricingParameterModuleValidator, it is not needed to give the full PricingParameters object.

Consequently, PricingParameterModuleValidator can be refactored so its method #validateModule takes a LegalEntity instead of a PricingParameters as second parameter.

oasuncion commented 5 months ago

Tests ok.