mpostol / TP

Programming in Practice - set of examples targeting education purpose.
http://mpostol.github.io/TP/
Apache License 2.0
54 stars 36 forks source link

ExDM Add DI to the Catalog #385

Open mpostol opened 5 months ago

mpostol commented 5 months ago

Describe problem

Now to initialize the state of the class

TP.StructuralData.LINQ_to_object.Catalog

Method DI is used, namely:

Catalog.AddContent(System.Collections.Generic.IEnumerable)

Describe the solution you'd like

Other kinds of DI must be added.

Describe alternatives you've considered

Consider external initialization, I mean the data generator is responsible for populating the graph.

List of tasks to be accomplished