My services have initialisation functions that I need to call to retrieve the data required to setup the database with the current data.
This is not data that would be populated when the database is created or when the model changes.
I have put calls to initialise these services when the objects that use these services are created.
I tried to find where else to put the calls but the repositories were not all initialized yet so they were injected as null values.
Where should I put these calls so that I know that all the services and repositories have been created and injected in their required locations.
e.g I have put a call to initialise one of my services when the object that uses it is created..
The service then does nothing if it has already been initialised.
public virtual void Created()
NO has the NakedObjectsStart class maybe I can put these calls there somewhere?
PS. Sorry about the formatting it looks like the formatting doesn't work