Esempio n. 1
0
 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;
 }
Esempio n. 2
0
        private static HwConfigSample GenerateHwConfig()
        {
            var container        = new UnityContainer();
            var nonconfigManager = new NonconfigDataManagerRegistry(container);
            var integrationSvr   = new MockIntegrationService {
                AgentModulesPath = Path.Combine(_testDirectory, SAMPLES_DIR)
            };
            var log      = new MockAceLog();
            var hwconfig = new HwConfigSample(nonconfigManager, integrationSvr, log);

            return(hwconfig);
        }
Esempio n. 3
0
        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;
 }