프로젝트

일반

사용자정보

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

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

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

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 DataBaseDocInfoPG : TestBasePG
8
    {
9 4487f701 GeunHo Song
        [Test, Description("DocInfoInsert")]
10
        public void DocInfoInsert()
11 264f0f92 GeunHo Song
        {
12 4487f701 GeunHo Song
            string newConvertDocID = string.Empty;
13
14
            using (Markus.Service.DataBase.Repositories.ConvertDocRepository repository = new Repositories.ConvertDocRepository(ConnectionStr, dbtype))
15 264f0f92 GeunHo Song
            {
16 4487f701 GeunHo Song
                newConvertDocID = repository.CreateAsync(ProjectNo, docUri, "111111").GetAwaiter().GetResult();
17
                Console.WriteLine($"new id : {newConvertDocID}");
18 c1946e9c GeunHo Song
                
19 4487f701 GeunHo Song
            }
20 264f0f92 GeunHo Song
21 4487f701 GeunHo Song
            if (!string.IsNullOrEmpty(newConvertDocID))
22
            {
23
                using (Markus.Service.DataBase.Repositories.DOCINFORepository repository = new Repositories.DOCINFORepository(ConnectionStr, dbtype))
24 264f0f92 GeunHo Song
                {
25 4487f701 GeunHo Song
                    var result = repository.CreateAsync(newConvertDocID, 10).GetAwaiter().GetResult();
26 264f0f92 GeunHo Song
27 4487f701 GeunHo Song
                    Console.WriteLine($"new id : {result}");
28 9e974b65 GeunHo Song
                    Assert.Pass(result);
29 4487f701 GeunHo Song
                }
30 264f0f92 GeunHo Song
            }
31
        }
32
    }
33
}
클립보드 이미지 추가 (최대 크기: 500 MB)