Removed not needed properties from api

This commit is contained in:
2023-08-02 15:28:45 -07:00
parent 2614782d58
commit c5e3acc3e4
5 changed files with 132 additions and 118 deletions

View File

@ -47,7 +47,7 @@ public class API : LoggingUnitTesting, IDisposable
catch (Exception) { }
}
#if true
#if (!true)
[Ignore]
#endif
[TestMethod]
@ -56,7 +56,10 @@ public class API : LoggingUnitTesting, IDisposable
MethodBase methodBase = new StackFrame().GetMethod();
#nullable enable
HttpClient httpClient = new();
string httpClientResult = httpClient.GetStringAsync($"{FileRead.OpenInsightApplicationProgrammingInterface}/materials/rds/601132").Result;
// string rds = "504162";
string rds = "601132";
string url = $"{FileRead.OpenInsightApplicationProgrammingInterface}/materials/rds/{rds}";
string httpClientResult = httpClient.GetStringAsync(url).Result;
FileHandlers.MoveAllFiles.OpenInsight.Root? root = JsonSerializer.Deserialize<FileHandlers.MoveAllFiles.OpenInsight.Root>(httpClientResult);
httpClient.Dispose();
Assert.IsNotNull(root?.Rds.ProdSpec.PrsStages);