-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional instance data to AddProperty method
- Loading branch information
Showing
3 changed files
with
99 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace FastMoq.Tests.TestClasses | ||
{ | ||
public class SubscriptionData | ||
{ | ||
internal SubscriptionData() | ||
{ | ||
} | ||
|
||
internal SubscriptionData(string subscriptionId, string displayName, Guid? tenantId, string authorizationSource, IReadOnlyList<Guid> managedByTenants, IReadOnlyDictionary<string, string> tags) | ||
{ | ||
SubscriptionId = subscriptionId; | ||
DisplayName = displayName; | ||
TenantId = tenantId; | ||
AuthorizationSource = authorizationSource; | ||
ManagedByTenants = managedByTenants; | ||
Tags = tags; | ||
} | ||
/// <summary> The subscription ID. </summary> | ||
public string SubscriptionId { get; } | ||
/// <summary> The subscription display name. </summary> | ||
public string DisplayName { get; set; } | ||
/// <summary> The subscription tenant ID. </summary> | ||
public Guid? TenantId { get; } | ||
/// <summary> The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. </summary> | ||
/// <summary> The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'. </summary> | ||
public string AuthorizationSource { get; } | ||
/// <summary> An array containing the tenants managing the subscription. </summary> | ||
public IReadOnlyList<Guid> ManagedByTenants { get; } | ||
/// <summary> The tags attached to the subscription. </summary> | ||
public IReadOnlyDictionary<string, string> Tags { get; } | ||
} | ||
} |