mpostol / TP

Programming in Practice - set of examples targeting education purpose.

Home Page:http://mpostol.github.io/TP/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ExDM Add DI to the Catalog

mpostol opened this issue · comments

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<TP.StructuralData.Data.IPerson>)

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

  • Constructor injection
  • Property injection