프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / ConvertService / ServiceBase / Markus.Service.DataBase.Test / DataBaseDocInfoPG.cs @ c1946e9c

이력 | 보기 | 이력해설 | 다운로드 (1.16 KB)

1
using NUnit.Framework;
2
using System;
3
using System.Collections.Generic;
4

    
5
namespace Markus.Service.DataBase.Test
6
{
7
    public class DataBaseDocInfoPG : TestBasePG
8
    {
9
        [Test, Description("DocInfoInsert")]
10
        public void DocInfoInsert()
11
        {
12
            string newConvertDocID = string.Empty;
13

    
14
            using (Markus.Service.DataBase.Repositories.ConvertDocRepository repository = new Repositories.ConvertDocRepository(ConnectionStr, dbtype))
15
            {
16
                newConvertDocID = repository.CreateAsync(ProjectNo, docUri, "111111").GetAwaiter().GetResult();
17
                Console.WriteLine($"new id : {newConvertDocID}");
18
                
19
            }
20

    
21
            if (!string.IsNullOrEmpty(newConvertDocID))
22
            {
23
                using (Markus.Service.DataBase.Repositories.DOCINFORepository repository = new Repositories.DOCINFORepository(ConnectionStr, dbtype))
24
                {
25
                    var result = repository.CreateAsync(newConvertDocID, 10).GetAwaiter().GetResult();
26

    
27
                    Console.WriteLine($"new id : {result}");
28
                    Assert.Pass(result);
29
                }
30
            }
31
        }
32
    }
33
}
클립보드 이미지 추가 (최대 크기: 500 MB)