Esempio n. 1
0
        public void TestDeploymentSettingsTestWithDefaultServiceSettings()
        {
            string label          = "MyLabel";
            string deploymentName = service.ServiceName;

            settings.Subscription = "TestSubscription2";
            PublishContext deploySettings = new PublishContext(
                settings,
                packagePath,
                configPath,
                label,
                deploymentName,
                rootPath);

            AzureAssert.AreEqualPublishContext(settings, configPath, deploymentName, label, packagePath, "f62b1e05-af8f-4205-8f98-325079adc155", deploySettings);
        }
Esempio n. 2
0
        public void TestDeploymentSettingsTestWithFullServiceSettings()
        {
            string          label          = "MyLabel";
            string          deploymentName = service.ServiceName;
            ServiceSettings fullSettings   = ServiceSettingsTestData.Instance.Data[ServiceSettingsState.Sample1];
            PublishContext  deploySettings = new PublishContext(
                fullSettings,
                packagePath,
                configPath,
                label,
                deploymentName,
                rootPath);

            AzureAssert.AreEqualPublishContext(
                fullSettings,
                configPath,
                deploymentName,
                label,
                packagePath,
                "f62b1e05-af8f-4205-8f98-325079adc155",
                deploySettings);
        }