當前位置: 首頁>>代碼示例>>C#>>正文


C# ComputeProvider.ListImagesWithDetails方法代碼示例

本文整理匯總了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());
        }
開發者ID:EdLeafe,項目名稱:openstack.net,代碼行數:8,代碼來源:ComputeTests.cs

示例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());
        }
開發者ID:EdLeafe,項目名稱:openstack.net,代碼行數:8,代碼來源:ComputeTests.cs

示例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);
        }
開發者ID:EdLeafe,項目名稱:openstack.net,代碼行數:8,代碼來源:ComputeTests.cs

示例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());
        }
開發者ID:EdLeafe,項目名稱:openstack.net,代碼行數:8,代碼來源:ComputeTests.cs

示例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());
        }
開發者ID:EdLeafe,項目名稱:openstack.net,代碼行數:8,代碼來源:ComputeTests.cs

示例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());
        }
開發者ID:EdLeafe,項目名稱:openstack.net,代碼行數:7,代碼來源:ComputeTests.cs

示例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());
        }
開發者ID:bretmcg,項目名稱:openstack.net,代碼行數:8,代碼來源:ComputeTests.cs

示例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());
        }
開發者ID:bretmcg,項目名稱:openstack.net,代碼行數:8,代碼來源:ComputeTests.cs

示例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());
        }
開發者ID:bretmcg,項目名稱:openstack.net,代碼行數:7,代碼來源:ComputeTests.cs

示例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);
        }
開發者ID:bretmcg,項目名稱:openstack.net,代碼行數:9,代碼來源:ComputeTests.cs


注:本文中的net.openstack.Providers.Rackspace.ComputeProvider.ListImagesWithDetails方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。