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); }
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); }