/// <summary>
 /// Creates from form.
 /// </summary>
 /// <returns></returns>
 public override ExtensionConfigurerBase CreateFromForm()
 {
     var configurer = new AzureConfigurer()
     {
         ServerID = 1, // int.Parse(this.ddlServer.SelectedValue),
         AzureSDKPath = this.sdkPath.Text,
         Credentials = new AzureAuthentication() { SubscriptionID = this.txtSubscriptionID.Text, CertificateName = this.txtCertificateName.Text  }
     };
     return configurer;
 }
示例#2
0
 public void Setup()
 {
     string subid = File.ReadAllText(@"c:\temp\sub.txt");
     AzureConfigurer testConfig = new AzureConfigurer();
     testConfig.AzureSDKPath = @"C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\v2.0\bin";
     testConfig.Credentials = new AzureAuthentication() { SubscriptionID = subid, CertificateName = "AzureDemo" };
     createAction = new CreateHostedServiceAction();
     createAction.TestConfigurer = testConfig;
     deleteAction = new DeleteHostedServiceAction();
     deleteAction.TestConfigurer = testConfig;
     deployAction = new DeployPackageAction();
     deployAction.TestConfigurer = testConfig;
     swapAction = new SwapDeploymentAction();
     swapAction.TestConfigurer = testConfig;
     deleteDeployAction = new DeleteDeploymentAction();
     deleteDeployAction.TestConfigurer = testConfig;
     changeAction = new ChangeDeploymentConfigurationAction();
     changeAction.TestConfigurer = testConfig;
 }