本文整理汇总了C#中net.openstack.Providers.Rackspace.ComputeProvider.ListImagesWithDetails方法的典型用法代码示例。如果您正苦于以下问题:C# ComputeProvider.ListImagesWithDetails方法的具体用法?C# ComputeProvider.ListImagesWithDetails怎么用?C# ComputeProvider.ListImagesWithDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.openstack.Providers.Rackspace.ComputeProvider
的用法示例。
在下文中一共展示了ComputeProvider.ListImagesWithDetails方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Test041_Should_Return_All_Images_With_Details_When_Using_A_Limit_Greater_Than_What_Actually_Exists
public void Test041_Should_Return_All_Images_With_Details_When_Using_A_Limit_Greater_Than_What_Actually_Exists()
{
var validImage = _allImages.First();
var provider = new net.openstack.Providers.Rackspace.ComputeProvider();
var images = provider.ListImagesWithDetails(_testIdentity, limit: _allImages.Count() * 2);
Assert.IsTrue(images.Count() == _allImages.Count());
}
示例2: Test037_Should_Return_At_Least_One_Image_With_Details_When_Searching_By_Valid_Change_Since_Date
public void Test037_Should_Return_At_Least_One_Image_With_Details_When_Searching_By_Valid_Change_Since_Date()
{
var validImage = _allImages.First();
var provider = new net.openstack.Providers.Rackspace.ComputeProvider();
var images = provider.ListImagesWithDetails(_testIdentity, changesSince: validImage.Updated.AddSeconds(-1));
Assert.IsTrue(images.Any());
}
示例3: Test039_Should_Return_Exactly_Two_Images_With_Details
public void Test039_Should_Return_Exactly_Two_Images_With_Details()
{
var validImage = _allImages.First();
var provider = new net.openstack.Providers.Rackspace.ComputeProvider();
var images = provider.ListImagesWithDetails(_testIdentity, limit: 2);
Assert.IsTrue(images.Count() == 2);
}
示例4: Test034_Should_Return_One_Image_With_Details_When_Searching_By_Valid_Id
public void Test034_Should_Return_One_Image_With_Details_When_Searching_By_Valid_Id()
{
var validImage = _allImages.First();
var provider = new net.openstack.Providers.Rackspace.ComputeProvider();
var images = provider.ListImagesWithDetails(_testIdentity, serverId: validImage.Server.Id);
Assert.IsTrue(images.Any());
}
示例5: Test036_Should_Return_At_Least_One_Image_With_Details_When_Searching_By_Valid_Status
public void Test036_Should_Return_At_Least_One_Image_With_Details_When_Searching_By_Valid_Status()
{
var validImage = _allImages.First();
var provider = new net.openstack.Providers.Rackspace.ComputeProvider();
var images = provider.ListImagesWithDetails(_testIdentity, imageStatus: validImage.Status);
Assert.IsTrue(images.Any());
}
示例6: Test029_Should_Get_List_All_Images_With_Details
public void Test029_Should_Get_List_All_Images_With_Details()
{
var provider = new net.openstack.Providers.Rackspace.ComputeProvider();
_allImages = provider.ListImagesWithDetails(_testIdentity);
Assert.IsTrue(_allImages.Any());
}
示例7: Test035_Should_Return_At_Least_One_Image_With_Details_When_Searching_By_Valid_Name
public void Test035_Should_Return_At_Least_One_Image_With_Details_When_Searching_By_Valid_Name()
{
var validImage = _allImages.First();
var provider = new ComputeProvider(_testIdentity);
var images = provider.ListImagesWithDetails(imageName: _testImageName);
Assert.IsTrue(images.Any());
}
示例8: Test034_Should_Return_One_Image_With_Details_When_Searching_By_Valid_Id
public void Test034_Should_Return_One_Image_With_Details_When_Searching_By_Valid_Id()
{
var validImage = _allImages.First(i => i.Server != null);
var provider = new ComputeProvider(_testIdentity);
var images = provider.ListImagesWithDetails(serverId: validImage.Server.Id);
Assert.IsTrue(images.Any());
}
示例9: Test029_Should_Get_List_All_Images_With_Details
public void Test029_Should_Get_List_All_Images_With_Details()
{
var provider = new ComputeProvider(_testIdentity);
_allImages = provider.ListImagesWithDetails(identity: _testIdentity);
Assert.IsTrue(_allImages.Any());
}
示例10: Should_Retrieve_Image_By_Name
public void Should_Retrieve_Image_By_Name()
{
var provider = new ComputeProvider(_testIdentity);
var images = provider.ListImagesWithDetails();
_testImage = images.First(i => i.Name == _testImageName);
Assert.IsNotNull(_testImage);
}