Need DB II
This commit is contained in:
		| @ -45,7 +45,7 @@ public class UnitTestPinController | ||||
|         IPinRepository pinRepository = serviceProvider.GetRequiredService<IPinRepository>(); | ||||
|         string? cde = System.Text.Json.JsonSerializer.Serialize(new HeaderCommon { ID = 196984, ToolTypeID = 2 }); | ||||
|         string? bioRad = System.Text.Json.JsonSerializer.Serialize(new HeaderCommon { ID = 321568, ToolTypeID = 1 }); | ||||
|         Result<HeaderCommond[]> result = pinRepository.GetPinnedTable(metrologyRepository, id: 1, bioRad, cde); | ||||
|         Result<Pinned[]> result = pinRepository.GetPinnedTable(metrologyRepository, id: 1, bioRad, cde); | ||||
|         Assert.IsNotNull(result?.Results); | ||||
|         Assert.IsTrue(result.Results.Any()); | ||||
|         _Logger.Information($"{_TestContext?.TestName} completed"); | ||||
| @ -58,7 +58,7 @@ public class UnitTestPinController | ||||
|         _Logger.Information("Starting Web Application"); | ||||
|         string? json = await httpClient.GetStringAsync($"api/{_ControllerName}/-1/headertitles"); | ||||
|         File.WriteAllText(Path.Combine(AppContext.BaseDirectory, $"{nameof(GetHeaderTitlesApi)}.json"), json); | ||||
|         Result<HeaderCommond[]>? result = System.Text.Json.JsonSerializer.Deserialize<Result<HeaderCommond[]>>(json); | ||||
|         Result<Pinned[]>? result = System.Text.Json.JsonSerializer.Deserialize<Result<Pinned[]>>(json); | ||||
|         Assert.IsNotNull(result?.Results); | ||||
|         Assert.IsTrue(result.Results.Any()); | ||||
|         _Logger.Information($"{_TestContext?.TestName} completed"); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user