Пример #1
0
 public void ConfigureDependencies(IInversionOfControl container)
 {
     container.AddSingleton <IConfiguration, Configurations>()
     .AddSingleton <IBinarySearchTree <BottomSizeTreeDataModel>, BinarySearchTree <BottomSizeTreeDataModel> >()
     .AddSingleton <ILinked_List <TimeListDataModel>, Linked_List <TimeListDataModel> >()
     .AddSingleton <IRepository <Box>, BoxesRepository>()
     .RegisterType <ILogger, ConsoleLogger>()
     .RegisterType <IUserInteractions, UserInteractions>()
     .AddSingleton <IManager, Manager>();
 }
Пример #2
0
 public BoxesUI(IStartup startUp, IInversionOfControl ioc)
 {
     _startUp = startUp;
     _ioc     = ioc;
     Init();
 }