public void SetupTest() { found = new TestData(); channel = new SimpleServiceManagement { UpdateStorageServiceThunk = ar => { found.SubscriptionId = (string)ar.Values["subscriptionId"]; found.StorageServiceName = (string)ar.Values["StorageServiceName"]; found.UpdateStorageServiceInput = (UpdateStorageServiceInput)ar.Values["updateStorageServiceInput"]; } }; }
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()); }