コード例 #1
0
        private void AssertExpectedValue(TestData expected)
        {
            var command = new SetAzureStorageAccountCommand
            {
                Channel = channel,
                CommandRuntime = new MockCommandRuntime(),
                ShareChannel = true,
                CurrentSubscription = new WindowsAzureSubscription { SubscriptionId = expected.SubscriptionId },
                StorageAccountName = expected.StorageServiceName,
                Description = expected.UpdateStorageServiceInput.Description,
                Label = expected.UpdateStorageServiceInput.Label,
                GeoReplicationEnabled = expected.UpdateStorageServiceInput.GeoReplicationEnabled
            };
            command.SetStorageAccountProcess();

            Assert.AreEqual(expected.ToString(), found.ToString());
        }
コード例 #2
0
        private void AssertExpectedValue(TestData expected)
        {
            var command = new SetAzureStorageAccountCommand(channel)
            {
                CommandRuntime      = new MockCommandRuntime(),
                ShareChannel        = true,
                CurrentSubscription = new SubscriptionData {
                    SubscriptionId = expected.SubscriptionId
                },
                StorageAccountName = expected.StorageServiceName,
                Description        = expected.UpdateStorageServiceInput.Description,
                Label = expected.UpdateStorageServiceInput.Label,
                GeoReplicationEnabled = expected.UpdateStorageServiceInput.GeoReplicationEnabled
            };

            command.SetStorageAccountProcess();

            Assert.AreEqual(expected.ToString(), found.ToString());
        }