Delete Work Material
Added InfinityQSV3-GetEpiProTempVerification Added nigth shift
This commit is contained in:
@ -57,9 +57,6 @@ public class UnitTestInfinityQSV3Controller
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public async Task GetCommandTextApi()
|
||||
{
|
||||
@ -73,9 +70,6 @@ public class UnitTestInfinityQSV3Controller
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public void GetData()
|
||||
{
|
||||
@ -94,9 +88,6 @@ public class UnitTestInfinityQSV3Controller
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public async Task GetDataApi()
|
||||
{
|
||||
@ -112,9 +103,6 @@ public class UnitTestInfinityQSV3Controller
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public void GetDescriptors()
|
||||
{
|
||||
@ -130,9 +118,6 @@ public class UnitTestInfinityQSV3Controller
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public async Task GetDescriptorsApi()
|
||||
{
|
||||
@ -148,9 +133,6 @@ public class UnitTestInfinityQSV3Controller
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public void GetHeader()
|
||||
{
|
||||
@ -164,9 +146,6 @@ public class UnitTestInfinityQSV3Controller
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public async Task GetHeaderApi()
|
||||
{
|
||||
@ -182,9 +161,6 @@ public class UnitTestInfinityQSV3Controller
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public void GetProductDataAverageSumOfDefectsProcessMeanProcessSigma()
|
||||
{
|
||||
@ -197,9 +173,6 @@ public class UnitTestInfinityQSV3Controller
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public async Task GetProductDataAverageSumOfDefectsProcessMeanProcessSigmaApi()
|
||||
{
|
||||
@ -213,4 +186,30 @@ public class UnitTestInfinityQSV3Controller
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void GetEpiProTempVerification()
|
||||
{
|
||||
_Logger?.LogInformation("Starting Web Application");
|
||||
int[] night = new int[] { 44, 46, 52, 54 };
|
||||
IServiceProvider? serviceProvider = _WebApplicationFactory?.Services.CreateScope().ServiceProvider;
|
||||
IInfinityQSV3Repository? infinityQSV3Repository = serviceProvider?.GetRequiredService<IInfinityQSV3Repository>();
|
||||
string? result = infinityQSV3Repository?.GetEpiProTempVerification(night);
|
||||
Assert.IsNotNull(result);
|
||||
_Logger?.LogInformation("{TestName} completed", _TestContext?.TestName);
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public async Task GetEpiProTempVerificationApi()
|
||||
{
|
||||
HttpClient? httpClient = _WebApplicationFactory?.CreateClient();
|
||||
_Logger?.LogInformation("Starting Web Application");
|
||||
Assert.IsTrue(httpClient is not null);
|
||||
string? result = await httpClient.GetStringAsync($"api/{_ControllerName}/epi-pro-temp-verification/?night=44&night=46&night=52&night=54");
|
||||
File.WriteAllText(Path.Combine(AppContext.BaseDirectory, $"{_ControllerName}-{nameof(GetEpiProTempVerification)}.html"), result);
|
||||
Assert.IsNotNull(result);
|
||||
_Logger?.LogInformation("{TestName} completed", _TestContext?.TestName);
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user