I have the following classes:
public class AllowanceManager : IAllowanceManager
{
public AllowanceManager(ITranslationManager t_Manager, ISessionManager s_Manager)
{...}
}
public class TranslationManager : ITranslationManager
{
public TranslationManager(string culture)
{...}
}
public class SessionManager : ISessionManager
{
public SessionManager(string key)
{...}
}
How can I initialize this classes up in ObjectFactory so that getting an instance of IAllowanceManager also autowires and initializes (with the constructor arguments) StateManager and TranslationManager. So that I only need to retrieve the instance of IAllowanceDeduction like so:
IAllowanceManager a_Manager = ObjectFactory....// Gets Allowancemanager configured with initialized instances of IStateManager and ITranslationManager