❔ Refactoring strategy pattern to a simpler code
I have the following code and I want te refactor it to a less-boiler-plate code.
Wha'ts suposed to do is that the
1.decides to which output system it needs to send information (depending on some configuration and on the product itself). There could be more thant 1 output systems to send the product to.
2. convert the Product to the appropriate format for chosen output systems.
3. send to those systems
Wha'ts suposed to do is that the
Handle method should take a product as input and1.decides to which output system it needs to send information (depending on some configuration and on the product itself). There could be more thant 1 output systems to send the product to.
2. convert the Product to the appropriate format for chosen output systems.
3. send to those systems
