Ejemplo n.º 1
0
        public void Setup()
        {
            action = new DeployPackageAction();
            action.TestConfigurer = new AzureConfigurer();
            action.TestConfigurer.AzureSDKPath = @"C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\v2.0\bin";
            string subid = File.ReadAllText(@"c:\temp\sub.txt");

            action.TestConfigurer.Credentials = new AzureAuthentication()
            {
                SubscriptionID = subid, CertificateName = "AzureDemo"
            };
        }
Ejemplo n.º 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;
        }