Skip to content

Commit c42d8a3

Browse files
author
Pooja Adhikari
committed
Requested Updates on PR
1 parent 28d6a5a commit c42d8a3

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

src/HealthcareApis/HealthcareApis/Common/HealthcareApisArgumentValidator.cs

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
1-
using Microsoft.Azure.Commands.HealthcareApis.Properties;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.HealthcareApis.Properties;
216
using System;
3-
using System.Collections.Generic;
417
using System.Management.Automation;
5-
using System.Text;
6-
using System.Text.RegularExpressions;
718

819
namespace Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Common
920
{
1021
public static class HealthcareApisArgumentValidator
1122
{
12-
13-
public static bool ValidateObjectId(string AccessPolicyObjectId)
23+
public static bool ValidateObjectId(string accessPolicyObjectId)
1424
{
15-
if (!Guid.TryParse(AccessPolicyObjectId, out _))
25+
if (!Guid.TryParse(accessPolicyObjectId, out _))
1626
{
1727
throw new PSArgumentException(Resources.invalidAccessPolicyObjectIdMessage);
1828
}

src/HealthcareApis/HealthcareApis/HealthcareApis/SetAzureRmHealthcareApisService.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,16 @@ private IDictionary<string, string> GetTags(ServicesDescription healthcareApisAc
272272
{
273273
if(this.Tag!=null && this.Tag.Count > 0)
274274
{
275-
Dictionary<string, string> dict = new Dictionary<string, string>();
276-
foreach (DictionaryEntry kvp in this.Tag)
277-
dict.Add((string)kvp.Key, (string)kvp.Value);
278-
return dict;
275+
Dictionary<string, string> tags = new Dictionary<string, string>();
276+
foreach (DictionaryEntry tag in this.Tag)
277+
{
278+
tags.Add((string)tag.Key, (string)tag.Value);
279+
}
280+
281+
return tags;
279282
}
280283

281-
return healthcareApisAccount.Tags;
284+
return healthcareApisAccount.Tags;
282285
}
283286

284287
private bool? IsSmartOnFhirEnabled(bool? currentSmartOnFhirValue)

0 commit comments

Comments
 (0)