markus / ConvertService / ServiceBase / Markus.Service.DataBase.Test / DataBaseProperties.cs @ d85fc490
이력 | 보기 | 이력해설 | 다운로드 (917 Bytes)
1 |
using NUnit.Framework; |
---|---|
2 |
using System; |
3 |
using System.Collections.Generic; |
4 |
|
5 |
namespace Markus.Service.DataBase.Test |
6 |
{ |
7 |
public class DataBaseProperties : TestBaseMSSQL |
8 |
{ |
9 |
[Test, Description("GetPropertyItem")] |
10 |
public void GetPropertyItem() |
11 |
{ |
12 |
using (Markus.Service.DataBase.Repositories.PROPERTIESRepository repository = new Repositories.PROPERTIESRepository(ConnectionStr, dbtype)) |
13 |
{ |
14 |
var result = repository.GetFirstAsync("000000", "TileSorceStorage").GetAwaiter().GetResult(); |
15 |
if (result != null) |
16 |
{ |
17 |
Console.WriteLine($"new id : {result.ID}"); |
18 |
Assert.Pass(result.ID.ToString()); |
19 |
} |
20 |
else |
21 |
{ |
22 |
Console.WriteLine($"new id : null"); |
23 |
Assert.Fail(); |
24 |
} |
25 |
} |
26 |
} |
27 |
} |
28 |
} |