Exemple #1
0
 public void Initialize()
 {
     unityContainer = new UnityContainer();
     unityContainer.RegisterInstance <IFileRepository>(respositoryInstance);
     unityContainer.RegisterType <IHarvesterTasks, MockTaskScheduler>();
     unityContainer.RegisterInstance <ILog>(log);
     OrgsHandler.Clean();
     respositoryInstance.Clean();
     OrgsHandler.Initialize(unityContainer);
 }
Exemple #2
0
 public void Initialize()
 {
     unityContainer = new UnityContainer();
     unityContainer.RegisterInstance <IFileRepository>(respositoryInstance)
     .RegisterInstance <IHarvesterTasks>(new LimitedConcurrencyHarvesterTasks())
     .RegisterType <ITAGProcessorClient, MockRaptor>();
     unityContainer.RegisterInstance <ILog>(log);
     OrgsHandler.Clean();
     OrgsHandler.TagFileSubmitterTasksTimeout = TimeSpan.FromMinutes(5);
     respositoryInstance.Clean();
     OrgsHandler.Initialize(unityContainer);
 }