コード例 #1
0
ファイル: MergeFeature.cs プロジェクト: kapiya/Warewolf
        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);
        }
コード例 #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"
        }