Exemplo n.º 1
0
        public void Setup()
        {
            var merge = new MergeFeature(_scenarioContext);

            AppUsageStats.LocalHost = "http://localhost:3142";
            var mergeParser = new ServiceDifferenceParser();
            var pop         = new Mock <IPopupController>();

            CustomContainer.Register <IServiceDifferenceParser>(mergeParser);
            CustomContainer.Register <IAsyncWorker>(new SynchronousAsyncWorker());
            CustomContainer.Register(environmentModel);
            CustomContainer.Register(pop.Object);
            localHost = environmentModel.Source;
            localHost.ConnectAsync().Wait(60000);
        }
Exemplo n.º 2
0
        public void Setup()
        {
            var merge = new MergeFeature(_scenarioContext);

            AppUsageStats.LocalHost = "http://localhost:3142";
            var mergeParser = new ServiceDifferenceParser();
            var pop         = new Mock <IPopupController>();

            CustomContainer.Register <IServiceDifferenceParser>(mergeParser);
            CustomContainer.Register <IAsyncWorker>(new SynchronousAsyncWorker());
            CustomContainer.Register(environmentModel);
            CustomContainer.Register(pop.Object);
            localHost = environmentModel.Source;
            localHost.ConnectAsync().Wait(60000);
#pragma warning disable S125 // Sections of code should not be "commented out"
            //localHost.ResourceRepository.Load(true);
#pragma warning restore S125 // Sections of code should not be "commented out"
        }