コード例 #1
0
        public async Task TestPublishThenFetchDeploymentConfig()
        {
            string           data             = File.ReadAllText(_deploymentConfigFilePath);
            DeploymentConfig deploymentConfig = _serializer.Deserialize(data);
            await _deploymentRepository.PublishDeploymentConfig(deploymentConfig);

            DeploymentConfig newDeploymentConfig = await _deploymentRepository.FetchDeploymentConfig();

            Assert.Equal(_serializer.Serialize(deploymentConfig), _serializer.Serialize(newDeploymentConfig));
        }
コード例 #2
0
        public async Task TestPublishThenFetchDeploymentConfig()
        {
            string           data             = File.ReadAllText(_deploymentConfigFilePath);
            DeploymentConfig deploymentConfig = new DeploymentConfig(data);
            await _deploymentRepository.PublishDeploymentConfig(deploymentConfig);

            DeploymentConfig newDeploymentConfig = await _deploymentRepository.FetchDeploymentConfig();

            Assert.Equal(deploymentConfig.RawData(), newDeploymentConfig.RawData());
        }
コード例 #3
0
ファイル: MainWindow.xaml.cs プロジェクト: mortezasoft/Yams
        private async void OnPublishToBlob(object sender, RoutedEventArgs e)
        {
            BusyWindow busyWindow = new BusyWindow {
                Message = "Please wait..\n\n" + "The DeploymentConfig.json file is being uploaded to blob storage"
            };

            busyWindow.Show();
            StorageAccountConnectionInfo connectionInfo = GetCurrentConnection();
            IDeploymentRepository        connection     = _deploymentRepositoryManager.GetRepository(connectionInfo);
            await connection.PublishDeploymentConfig(_deploymentConfig);

            busyWindow.Close();
        }