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)); }
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()); }
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(); }