static void Main(string[] args) { var container = new UnityContainer(); var nonconfigManager = new NonconfigDataManagerRegistry(container); var hwconfig = GenerateHwConfig(); hwconfig.InitializeDll(); }
static void Main(string[] args) { var container = new UnityContainer(); var nonconfigManager = new NonconfigDataManagerRegistry(container); var hwconfig = GenerateHwConfig(); hwconfig.InitializeDll(); }
private static HwConfigSample GenerateHwConfig() { var container = new UnityContainer(); var nonconfigManager = new NonconfigDataManagerRegistry(container); var integrationSvr = new MockIntegrationService { AgentModulesPath = Path.Combine("Modules") }; var log = new MockAceLog(); var hwconfig = new HwConfigSample(nonconfigManager, integrationSvr, log); return hwconfig; }
private static HwConfigSample GenerateHwConfig() { var container = new UnityContainer(); var nonconfigManager = new NonconfigDataManagerRegistry(container); var integrationSvr = new MockIntegrationService { AgentModulesPath = Path.Combine("Modules") }; var log = new MockAceLog(); var hwconfig = new HwConfigSample(nonconfigManager, integrationSvr, log); return(hwconfig); }
private IUnityContainer GenerateContainer() { var integrationService = new MockIntegrationService { AgentModulesPath = Path.Combine(_TestDirectory, "Samples") }; var log = new MockAceLog(); var container = new UnityContainer(); var goldenModel = new AceModel(); var modelCopy = new AceModel(); var nonconfigDataManager = new NonconfigDataManagerRegistry(container); var hwconfig = new HwConfigSample(nonconfigDataManager, integrationService, log); container.RegisterInstance <IIntegrationService>(integrationService); container.RegisterInstance <IAceLog>(log); container.RegisterInstance <AceModel>(goldenModel); container.RegisterInstance <AceModelRestricted>(modelCopy); container.RegisterInstance <IConfigDll>("IoAgentSample", hwconfig); container.RegisterInstance <IRequestService>(new MockRequestService()); return(container); }
private IUnityContainer GenerateContainer() { var integrationService = new MockIntegrationService { AgentModulesPath = Path.Combine(_TestDirectory, "Samples") }; var log = new MockAceLog(); var container = new UnityContainer(); var goldenModel = new AceModel(); var modelCopy = new AceModel(); var nonconfigDataManager = new NonconfigDataManagerRegistry(container); var hwconfig = new HwConfigSample(nonconfigDataManager, integrationService, log); container.RegisterInstance<IIntegrationService>(integrationService); container.RegisterInstance<IAceLog>(log); container.RegisterInstance<AceModel>(goldenModel); container.RegisterInstance<AceModelRestricted>(modelCopy); container.RegisterInstance<IConfigDll>("IoAgentSample", hwconfig); container.RegisterInstance<IRequestService>(new MockRequestService()); return container; }