本文整理汇总了C#中Microsoft.WindowsAzure.Management.CloudService.Model.AzureService.GetCloudRuntimes方法的典型用法代码示例。如果您正苦于以下问题:C# AzureService.GetCloudRuntimes方法的具体用法?C# AzureService.GetCloudRuntimes怎么用?C# AzureService.GetCloudRuntimes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.WindowsAzure.Management.CloudService.Model.AzureService
的用法示例。
在下文中一共展示了AzureService.GetCloudRuntimes方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestGetRuntimes
public void TestGetRuntimes()
{
using (FileSystemHelper files = new FileSystemHelper(this))
{
AzureService service = new AzureService(files.RootPath, serviceName, null);
service.AddWebRole(Resources.NodeScaffolding);
string manifest = RuntimePackageHelper.GetTestManifest(files);
CloudRuntimeCollection collection = service.GetCloudRuntimes(service.Paths, manifest);
RuntimePackageHelper.ValidateRuntimesMatchManifest(manifest, collection);
}
}
示例2: TestGetRuntimes
public void TestGetRuntimes()
{
using (FileSystemHelper files = new FileSystemHelper(this))
{
AzureService service = new AzureService(files.RootPath, serviceName, null);
string manifest = RuntimePackageHelper.GetTestManifest(files);
CloudRuntimeCollection expected = service.GetCloudRuntimes(service.Paths, manifest);
cmdlet.GetAzureRuntimesProcess(string.Empty, Path.Combine(files.RootPath, serviceName), manifest);
List<CloudRuntimePackage> actual = writer.OutputChannel[0] as List<CloudRuntimePackage>;
Assert.AreEqual<int>(expected.Count, actual.Count);
Assert.IsTrue(expected.All<CloudRuntimePackage>( p => actual.Any<CloudRuntimePackage>(p2 => p2.PackageUri.Equals(p.PackageUri))));
}
}