-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Templetize SubResource and WritableSubResource classes, and added unit tests #21397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
m-nash
merged 16 commits into
Azure:feature/mgmt-track2
from
AME-Redmond:gearama/templetize
May 28, 2021
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
10f6ad0
Change the accessbility to virtual for Resource.Id
ccc17c7
merge from usptream
5060f5c
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
m-nash 9a9a651
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
m-nash 7764cb5
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
832483a
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
3066cd2
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
9597dc7
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
86547b0
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
m-nash 4fa650c
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
m-nash 6f858c5
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
m-nash fb80156
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
m-nash 17415b6
Sub resource template and tests
gearama 81b73ad
public class , public constructor
gearama 81f8d73
some PR comments
gearama 28ca370
PR comments and phonecall around silent errors and casting
gearama File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
67 changes: 61 additions & 6 deletions
67
sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubResource.cs
This file contains hidden or 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 |
|---|---|---|
| @@ -1,34 +1,89 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System; | ||
|
|
||
| namespace Azure.ResourceManager.Core | ||
| { | ||
| /// <summary> | ||
| /// A class representing a sub-resource that contains only the ID. | ||
| /// A class representing the a sub resource of ResourceIdentifier. | ||
| /// </summary> | ||
| [ReferenceType] | ||
| public partial class SubResource | ||
| public class SubResource : SubResource<ResourceIdentifier> | ||
| { | ||
| /// <summary> | ||
| /// Initializes an empty instance of <see cref="SubResource"/> for mocking. | ||
| /// </summary> | ||
| [InitializationConstructor] | ||
| public SubResource() | ||
| public SubResource() | ||
| { | ||
| } | ||
|
|
||
| /// <summary> Initializes a new instance of SubResource. </summary> | ||
| /// <summary> Initializes a new instance of <see cref="SubResource"/>. </summary> | ||
| /// <param name="id"> ARM resource Id. </param> | ||
| [SerializationConstructor] | ||
| protected internal SubResource(string id) : base(id) { } | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// A class representing a sub-resource that contains only the ID. | ||
| /// </summary> | ||
| [ReferenceType] | ||
| [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:File may only contain a single type", Justification = "Types differ by type argument only")] | ||
| public partial class SubResource<TIdentifier> : IEquatable<SubResource<TIdentifier>>, IEquatable<string>, | ||
| IComparable<SubResource<TIdentifier>>, IComparable<string> | ||
| where TIdentifier : ResourceIdentifier | ||
| { | ||
| /// <summary> | ||
| /// Initializes an empty instance of <see cref="SubResource{TIdentifier}"/> for mocking. | ||
| /// </summary> | ||
| [InitializationConstructor] | ||
| public SubResource() | ||
| { | ||
| } | ||
|
|
||
| /// <summary> Initializes a new instance of <see cref="SubResource{TIdentifier}"/>. </summary> | ||
| /// <param name="id"> ARM resource Id. </param> | ||
| [SerializationConstructor] | ||
| protected internal SubResource(string id) | ||
| { | ||
| Id = id; | ||
| Id = (TIdentifier)id; | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Gets the ARM resource identifier. | ||
| /// </summary> | ||
| /// <value></value> | ||
| public virtual ResourceIdentifier Id { get; } | ||
| public virtual TIdentifier Id { get; } | ||
|
|
||
| /// <inheritdoc/> | ||
| public int CompareTo(string other) | ||
| { | ||
| return string.Compare(Id, other, StringComparison.InvariantCultureIgnoreCase); | ||
| } | ||
|
|
||
| /// <inheritdoc/> | ||
| public int CompareTo(SubResource<TIdentifier> other) | ||
| { | ||
| if (other is null) | ||
| return 1; | ||
|
|
||
| if (ReferenceEquals(this, other)) | ||
| return 0; | ||
|
|
||
| return Id.CompareTo(other.Id); | ||
| } | ||
|
|
||
| /// <inheritdoc/> | ||
| public bool Equals(SubResource<TIdentifier> other) | ||
| { | ||
| return Id.Equals(other?.Id); | ||
| } | ||
|
|
||
| /// <inheritdoc/> | ||
| public bool Equals(string other) | ||
| { | ||
| return Id.Equals(other); | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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
70 changes: 63 additions & 7 deletions
70
sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/WritableSubResource.cs
This file contains hidden or 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 |
|---|---|---|
| @@ -1,32 +1,88 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System; | ||
|
|
||
| namespace Azure.ResourceManager.Core | ||
| { | ||
| /// <summary> | ||
| /// A class representing a sub-resource that contains only the read-only ID. | ||
| /// A class representing the a writable sub resource of ResourceIdentifier. | ||
| /// </summary> | ||
| [ReferenceType] | ||
| public partial class WritableSubResource | ||
| public class WritableSubResource : WritableSubResource<ResourceIdentifier> | ||
|
gearama marked this conversation as resolved.
|
||
| { | ||
| /// <summary> Initializes a new instance of SubResourceReadOnly. </summary> | ||
| /// <summary> | ||
| /// Initializes an empty instance of <see cref="WritableSubResource"/> for mocking. | ||
| /// </summary> | ||
| [InitializationConstructor] | ||
| public WritableSubResource() | ||
| public WritableSubResource() | ||
| { | ||
| } | ||
|
|
||
| /// <summary> Initializes a new instance of SubResourceReadOnly. </summary> | ||
| /// <summary> Initializes a new instance of <see cref="WritableSubResource"/>. </summary> | ||
| /// <param name="id"> ARM resource Id. </param> | ||
| [SerializationConstructor] | ||
| protected internal WritableSubResource(string id) : base(id) { } | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// A class representing a sub-resource that contains only the read-only ID. | ||
| /// </summary> | ||
| [ReferenceType] | ||
| [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:File may only contain a single type", Justification = "Types differ by type argument only")] | ||
| public partial class WritableSubResource <TIdentifier> : IEquatable<WritableSubResource<TIdentifier>>, IEquatable<string>, | ||
| IComparable<WritableSubResource<TIdentifier>>, IComparable<string> | ||
| where TIdentifier : ResourceIdentifier | ||
| { | ||
| /// <summary> | ||
| /// Initializes an empty instance of <see cref="WritableSubResource{TIdentifier}"/> for mocking. | ||
| /// </summary> | ||
| [InitializationConstructor] | ||
| public WritableSubResource() | ||
| { | ||
| } | ||
|
|
||
| /// <summary> Initializes a new instance of <see cref="WritableSubResource{TIdentifier}"/>. </summary> | ||
| /// <param name="id"> ARM resource Id. </param> | ||
| [SerializationConstructor] | ||
| protected internal WritableSubResource(string id) | ||
| { | ||
| Id = id; | ||
| Id = (TIdentifier)id; | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets the ARM resource identifier. | ||
| /// </summary> | ||
| /// <value></value> | ||
| public virtual ResourceIdentifier Id { get; set; } | ||
| public virtual TIdentifier Id { get; set; } | ||
|
|
||
| /// <inheritdoc/> | ||
| public int CompareTo(string other) | ||
| { | ||
| return string.Compare(Id, other, StringComparison.InvariantCultureIgnoreCase); | ||
| } | ||
|
|
||
| /// <inheritdoc/> | ||
| public int CompareTo(WritableSubResource<TIdentifier> other) | ||
| { | ||
| if (other is null) | ||
| return 1; | ||
|
|
||
| if (ReferenceEquals(this, other)) | ||
| return 0; | ||
| return Id.CompareTo(other.Id); | ||
| } | ||
|
|
||
| /// <inheritdoc/> | ||
| public bool Equals(WritableSubResource<TIdentifier> other) | ||
| { | ||
| return Id.Equals(other?.Id); | ||
| } | ||
|
|
||
| /// <inheritdoc/> | ||
| public bool Equals(string other) | ||
| { | ||
| return Id.Equals(other); | ||
| } | ||
| } | ||
| } | ||
65 changes: 65 additions & 0 deletions
65
sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SubResourceTests.cs
This file contains hidden or 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,65 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using NUnit.Framework; | ||
|
|
||
| namespace Azure.ResourceManager.Core.Tests | ||
| { | ||
| [Parallelizable] | ||
| public class SubResourceTests | ||
| { | ||
| [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1")] | ||
| [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.classicStorage/storageAccounts/account1")] | ||
| [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account2")] | ||
| [TestCase(1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] | ||
| [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1")] | ||
| [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/${?>._`", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] | ||
| public void CompareToObject(int expected, string id1, string id2) | ||
| { | ||
| SubResource resource1 = new SubResource(id1); | ||
| SubResource resource2 = new SubResource(id2); | ||
| Assert.AreEqual(expected, resource1.CompareTo(resource2)); | ||
| } | ||
|
|
||
| [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1")] | ||
| [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.classicStorage/storageAccounts/account1")] | ||
| [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account2")] | ||
| [TestCase(1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] | ||
| [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1")] | ||
| [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/${?>._`", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] | ||
| public void CompareToString(int expected, string id1, string id2) | ||
| { | ||
| SubResource resource1 = new SubResource(id1); | ||
| Assert.AreEqual(expected, resource1.CompareTo(id2)); | ||
| } | ||
|
|
||
| [Test] | ||
| public void CompareToNull() | ||
| { | ||
| var resource1 = new SubResource("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1"); | ||
| SubResource resource2 = null; | ||
| Assert.AreEqual(1, resource1.CompareTo(resource2)); | ||
| Assert.AreEqual(1, resource1.CompareTo((string)null)); | ||
| } | ||
|
|
||
| [Test] | ||
| public void CompareToSame() | ||
| { | ||
| var resource1 = new SubResource("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1"); | ||
| var resource2 = resource1; | ||
| Assert.AreEqual(0, resource1.CompareTo(resource2)); | ||
| } | ||
| } | ||
| } |
65 changes: 65 additions & 0 deletions
65
sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/WritableSubResourceTests.cs
This file contains hidden or 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,65 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using NUnit.Framework; | ||
|
|
||
| namespace Azure.ResourceManager.Core.Tests | ||
| { | ||
| [Parallelizable] | ||
| public class WritableSubResourceTests | ||
| { | ||
| [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1")] | ||
| [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.classicStorage/storageAccounts/account1")] | ||
| [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account2")] | ||
| [TestCase(1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] | ||
| [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1")] | ||
| [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/${?>._`", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] | ||
| public void CompareToObject(int expected, string id1, string id2) | ||
| { | ||
| WritableSubResource resource1 = new WritableSubResource(id1); | ||
| WritableSubResource resource2 = new WritableSubResource(id2); | ||
| Assert.AreEqual(expected, resource1.CompareTo(resource2)); | ||
| } | ||
|
|
||
| [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1")] | ||
| [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.classicStorage/storageAccounts/account1")] | ||
| [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account2")] | ||
| [TestCase(1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] | ||
| [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1")] | ||
| [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/${?>._`", | ||
| "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] | ||
| public void CompareToString(int expected, string id1, string id2) | ||
| { | ||
| WritableSubResource resource1 = new WritableSubResource(id1); | ||
| Assert.AreEqual(expected, resource1.CompareTo(id2)); | ||
| } | ||
|
|
||
| [Test] | ||
| public void CompareToNull() | ||
| { | ||
| var resource1 = new WritableSubResource("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1"); | ||
| WritableSubResource resource2 = null; | ||
| Assert.AreEqual(1, resource1.CompareTo(resource2)); | ||
| Assert.AreEqual(1, resource1.CompareTo((string)null)); | ||
| } | ||
|
|
||
| [Test] | ||
| public void CompareToSame() | ||
| { | ||
| var resource1 = new WritableSubResource("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1"); | ||
| var resource2 = resource1; | ||
| Assert.AreEqual(0, resource1.CompareTo(resource2)); | ||
| } | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.