|
20 | 20 | using IBM.Watson.DeveloperCloud.Utilities; |
21 | 21 | using System.Collections; |
22 | 22 | using System.Collections.Generic; |
23 | | -using UnityEditor; |
24 | 23 | using UnityEngine; |
25 | 24 |
|
26 | 25 | public class ExampleDiscovery : MonoBehaviour |
@@ -157,7 +156,7 @@ private IEnumerator Examples() |
157 | 156 |
|
158 | 157 | // Add Configuration |
159 | 158 | Log.Debug("TestDiscovery.RunTest()", "Attempting to add configuration"); |
160 | | - if (!_service.AddConfiguration(OnAddConfiguration, OnFail, _environmentId, _configurationJson.Replace("{guid}", GUID.Generate().ToString()))) |
| 159 | + if (!_service.AddConfiguration(OnAddConfiguration, OnFail, _environmentId, _configurationJson.Replace("{guid}", System.Guid.NewGuid().ToString()))) |
161 | 160 | Log.Debug("TestDiscovery.AddConfiguration()", "Failed to add configuration"); |
162 | 161 | while (!_addConfigurationTested) |
163 | 162 | yield return null; |
@@ -185,7 +184,7 @@ private IEnumerator Examples() |
185 | 184 |
|
186 | 185 | // Add Collection |
187 | 186 | Log.Debug("TestDiscovery.RunTest()", "Attempting to add collection"); |
188 | | - if (!_service.AddCollection(OnAddCollection, OnFail, _environmentId, _createdCollectionName + GUID.Generate().ToString(), _createdCollectionDescription, _environmentId)) |
| 187 | + if (!_service.AddCollection(OnAddCollection, OnFail, _environmentId, _createdCollectionName + System.Guid.NewGuid().ToString(), _createdCollectionDescription, _environmentId)) |
189 | 188 | Log.Debug("TestDiscovery.AddCollection()", "Failed to add collection"); |
190 | 189 | while (!_addCollectionTested) |
191 | 190 | yield return null; |
|
0 commit comments