ChangeServiceName() public method

public ChangeServiceName ( string newName, Microsoft.WindowsAzure.Management.CloudService.Model.ServicePathInfo paths ) : void
newName string
paths Microsoft.WindowsAzure.Management.CloudService.Model.ServicePathInfo
return void
コード例 #1
0
        public void ChangeServiceNameTest()
        {
            string newName = "NodeAppService";

            using (FileSystemHelper files = new FileSystemHelper(this))
            {
                AzureService service = new AzureService(files.RootPath, serviceName, null);
                service.ChangeServiceName(newName, service.Paths);
                Assert.AreEqual<string>(newName, service.Components.CloudConfig.serviceName);
                Assert.AreEqual<string>(newName, service.Components.LocalConfig.serviceName);
                Assert.AreEqual<string>(newName, service.Components.Definition.name);
            }
        }