markus / ConvertService / ServiceBase / Markus.Service.DataBase.Test / DataBasePropertiesPG.cs @ d85fc490
이력 | 보기 | 이력해설 | 다운로드 (916 Bytes)
1 | 264f0f92 | GeunHo Song | using NUnit.Framework; |
---|---|---|---|
2 | using System; |
||
3 | using System.Collections.Generic; |
||
4 | |||
5 | namespace Markus.Service.DataBase.Test |
||
6 | { |
||
7 | public class DataBasePropertiesPG : TestBasePG |
||
8 | { |
||
9 | d85fc490 | GeunHo Song | [Test, Description("GetPropertyItem")] |
10 | public void GetPropertyItem() |
||
11 | 264f0f92 | GeunHo Song | { |
12 | d85fc490 | GeunHo Song | using (Markus.Service.DataBase.Repositories.PROPERTIESRepository repository = new Repositories.PROPERTIESRepository(ConnectionStr, dbtype)) |
13 | 264f0f92 | GeunHo Song | { |
14 | d85fc490 | GeunHo Song | var result = repository.GetFirstAsync("000000", "TileSorceStorage").GetAwaiter().GetResult(); |
15 | if (result != null) |
||
16 | 264f0f92 | GeunHo Song | { |
17 | d85fc490 | GeunHo Song | 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 | 264f0f92 | GeunHo Song | } |
25 | } |
||
26 | } |
||
27 | } |
||
28 | } |