From 150b2eb743a18fa797202d8d198a5d8f07076559 Mon Sep 17 00:00:00 2001
From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
Date: Tue, 6 Oct 2020 12:46:55 -0700
Subject: [PATCH] Update test environment and add AssemblyInfo (#15679)
* Update test environment and add AssemblyInfo
* rename
---
.../src/Azure.Learn.AppConfig.csproj | 1 +
.../src/properties/AssemblyInfo.cs | 13 +++++++++++++
...ironment.cs => LearnAppConfigTestEnvironment.cs} | 8 ++++----
3 files changed, 18 insertions(+), 4 deletions(-)
create mode 100644 sdk/api-learn/Azure.Learn.AppConfig/src/properties/AssemblyInfo.cs
rename sdk/api-learn/Azure.Learn.AppConfig/tests/{AppConfigClientTestEnvironment.cs => LearnAppConfigTestEnvironment.cs} (53%)
diff --git a/sdk/api-learn/Azure.Learn.AppConfig/src/Azure.Learn.AppConfig.csproj b/sdk/api-learn/Azure.Learn.AppConfig/src/Azure.Learn.AppConfig.csproj
index 1fb316662fb3..114d8053c267 100644
--- a/sdk/api-learn/Azure.Learn.AppConfig/src/Azure.Learn.AppConfig.csproj
+++ b/sdk/api-learn/Azure.Learn.AppConfig/src/Azure.Learn.AppConfig.csproj
@@ -23,6 +23,7 @@
+
diff --git a/sdk/api-learn/Azure.Learn.AppConfig/src/properties/AssemblyInfo.cs b/sdk/api-learn/Azure.Learn.AppConfig/src/properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..3f981b282711
--- /dev/null
+++ b/sdk/api-learn/Azure.Learn.AppConfig/src/properties/AssemblyInfo.cs
@@ -0,0 +1,13 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System.Runtime.CompilerServices;
+
+// Replace with test project/test project public key and uncomment to make internal members visible to
+// your test project. If not needed, this can be deleted.
+// [assembly: InternalsVisibleTo("Azure.Template.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")]
+
+// Replace Microsoft.Test with the correct resource provider namepace for your service and uncomment.
+// See https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers
+// for the list of possible values.
+[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.AppConfiguration")]
diff --git a/sdk/api-learn/Azure.Learn.AppConfig/tests/AppConfigClientTestEnvironment.cs b/sdk/api-learn/Azure.Learn.AppConfig/tests/LearnAppConfigTestEnvironment.cs
similarity index 53%
rename from sdk/api-learn/Azure.Learn.AppConfig/tests/AppConfigClientTestEnvironment.cs
rename to sdk/api-learn/Azure.Learn.AppConfig/tests/LearnAppConfigTestEnvironment.cs
index 3ab1ba180d87..0ecb2553a8a7 100644
--- a/sdk/api-learn/Azure.Learn.AppConfig/tests/AppConfigClientTestEnvironment.cs
+++ b/sdk/api-learn/Azure.Learn.AppConfig/tests/LearnAppConfigTestEnvironment.cs
@@ -1,14 +1,14 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.Core.TestFramework;
-namespace Azure.Learn.AppConfig.Samples
+namespace Azure.Learn.AppConfig.Tests
{
// To learn more about TestEnvironment classes, please see: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core.TestFramework/README.md
- public class AppConfigClientTestEnvironment : TestEnvironment
+ public class LearnAppConfigTestEnvironment : TestEnvironment
{
- public AppConfigClientTestEnvironment() : base("api-learn")
+ public LearnAppConfigTestEnvironment() : base("api-learn")
{
}
}