This repository has been archived by the owner on May 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Sashimi.Azure into Sashimi.Azure.Accounts (#96)
* Merge Sashimi.Azure into Sashimi.Azure.Accounts
- Loading branch information
Showing
16 changed files
with
68 additions
and
214 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
7 changes: 4 additions & 3 deletions
7
...Web/AzureEnvironmentsListActionFixture.cs → ...Web/AzureEnvironmentsListActionFixture.cs
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
33 changes: 18 additions & 15 deletions
33
source/Sashimi.Azure.Accounts/PropertyDictionaryExtensions.cs
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 |
---|---|---|
@@ -1,27 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
static class PropertyDictionaryExtensions | ||
namespace Sashimi.Azure.Accounts | ||
{ | ||
public static bool ContainsPropertyWithValue(this IDictionary<string, string> dictionary, string key) | ||
static class PropertyDictionaryExtensions | ||
{ | ||
if (!dictionary.ContainsKey(key)) | ||
public static bool ContainsPropertyWithValue(this IDictionary<string, string> dictionary, string key) | ||
{ | ||
return false; | ||
} | ||
if (!dictionary.ContainsKey(key)) | ||
{ | ||
return false; | ||
} | ||
|
||
string value = dictionary[key]; | ||
return value != null && !string.IsNullOrEmpty(value); | ||
} | ||
string value = dictionary[key]; | ||
return value != null && !string.IsNullOrEmpty(value); | ||
} | ||
|
||
public static bool ContainsPropertyWithGuid(this IDictionary<string, string> dictionary, string key) | ||
{ | ||
if (!ContainsPropertyWithValue(dictionary, key)) | ||
public static bool ContainsPropertyWithGuid(this IDictionary<string, string> dictionary, string key) | ||
{ | ||
return false; | ||
} | ||
if (!ContainsPropertyWithValue(dictionary, key)) | ||
{ | ||
return false; | ||
} | ||
|
||
string guid = dictionary[key]; | ||
return Guid.TryParse(guid, out Guid _); | ||
string guid = dictionary[key]; | ||
return Guid.TryParse(guid, out Guid _); | ||
} | ||
} | ||
} |
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
5 changes: 3 additions & 2 deletions
5
...mi.Azure/Web/AzureHomeLinksContributor.cs → ...Accounts/Web/AzureHomeLinksContributor.cs
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
81 changes: 0 additions & 81 deletions
81
source/Sashimi.Azure.Accounts/Web/AzureServicePrincipalAccountExtensions.cs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.