I need to code a pricing calculation flow diagram in .net (C#). It has inputs and gets outputs on various factors including various taxes based on the item purchases, weight, dimensions, scarcity , distance, type of item, additional taxes, city taxes, leadtime,salesmen commission tables, time of year which can change regularly so will have to be updated regularly.
I can call a bunch of pricing calculations in sequential order and use if statements but because there are so many permutations I don't think even unit testing will cover it all.
What I would prefer rather than writing a long sequential list of steps is if there exists a flow diagram diagram structure in code where I can visualize the pricing calculation and write the relevant coding blocks in the various part of the flow diagram code.
Does anyone know of a design pattern that I can use in my situation or some code that already exists to create flow diagrams.
I can call a bunch of pricing calculations in sequential order and use if statements but because there are so many permutations I don't think even unit testing will cover it all.
What I would prefer rather than writing a long sequential list of steps is if there exists a flow diagram diagram structure in code where I can visualize the pricing calculation and write the relevant coding blocks in the various part of the flow diagram code.
Does anyone know of a design pattern that I can use in my situation or some code that already exists to create flow diagrams.