public void SubscriptionNameShouldReturnNullGivenNullSubscription() { AzureSubscriptionContext subscriptionContext = new AzureSubscriptionContext(null); Assert.True(subscriptionContext.SubscriptionName == String.Empty); Assert.True(subscriptionContext.Subscription == null); }
public void SubscriptionNameShouldReturnCorrectValueGivenValidSubscription() { string name = Guid.NewGuid().ToString(); string tenantId = Guid.NewGuid().ToString(); AzureSubscriptionContext subscriptionContext = new AzureSubscriptionContext(new AzureSubscriptionIdentifier(null, null, name, null)); Assert.True(subscriptionContext.SubscriptionName == name); Assert.True(subscriptionContext.Subscription != null); }