프로젝트

일반

사용자정보

개정판 9e974b65

ID9e974b6534b0393c9805e641484ea36c83de0a50
상위 7864cac7
하위 9f42e700

GeunHo Song 이(가) 약 2년 전에 추가함

issue #000 TEST 프로젝트 수정.

Change-Id: I1d49f5584f049a3e1b40fcc11105b58a9c55334e

차이점 보기:

ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBaseConvertDoc.cs
22 22

  
23 23
                newConvertDocIDs.Add(newConvertDocID);
24 24
                Console.WriteLine($"new id : {newConvertDocID}");
25

  
25
                Assert.Pass(newConvertDocID);
26 26
                var newConvertDocID2 = repository.CreateAsync(ProjectNo, docUri, "A1111111").GetAwaiter().GetResult();
27 27

  
28 28
                newConvertDocIDs.Add(newConvertDocID2);
29 29
                Console.WriteLine($"new id : {newConvertDocID2}");
30
                Assert.Pass(newConvertDocID2);
30 31
            }
31 32

  
32 33

  
......
42 43
            using (Markus.Service.DataBase.Repositories.ConvertDocRepository repository = new Repositories.ConvertDocRepository(ConnectionStr, dbtype))
43 44
            {
44 45
                var newConvertDocID = repository.Create(ProjectNo, docUri, "111111").GetAwaiter().GetResult();
45

  
46
                
46 47
                newConvertDocIDs.Add(newConvertDocID);
47 48
                Console.WriteLine($"new id : {newConvertDocID}");
49
                Assert.Pass(newConvertDocID);
48 50

  
49 51
                var newConvertDocID2 = repository.Create(ProjectNo, docUri, "A1111111").GetAwaiter().GetResult();
50

  
52
                
51 53
                newConvertDocIDs.Add(newConvertDocID2);
52 54
                Console.WriteLine($"new id : {newConvertDocID2}");
55
                Assert.Pass(newConvertDocID2);
53 56
            }
54 57
        }
55 58

  
......
67 70
                foreach (var convertDocID in newConvertDocIDs)
68 71
                {
69 72
                    var convertDoc = repository.GetConvertDocSingleAsync(ProjectNo, ConvertID: convertDocID).GetAwaiter().GetResult();
70

  
73
                    Assert.Pass(convertDoc.ID);
71 74
                    Console.WriteLine($"ID : {convertDoc.ID} PROJECT_NO:{convertDoc.PROJECT_NO} DOCUMENT_URL:{convertDoc.DOCUMENT_URL} DOCUMENT_ID:{convertDoc.DOCUMENT_ID}  ConvertPath:{convertDoc.ConvertPath}  ");
72 75
                    break;
73 76
                }
......
86 89

  
87 90
                foreach (var item in items)
88 91
                {
89
                    NUnit.Framework.Assert.Pass(item.ID);
92
                    Assert.Pass(item.ID);
90 93
                }
91 94
            }
92 95
        }
......
169 172

  
170 173
                Console.WriteLine($"ID : {convertDoc.ID} PROJECT_NO:{convertDoc.PROJECT_NO} DOCUMENT_URL:{convertDoc.DOCUMENT_URL} DOCUMENT_ID:{convertDoc.DOCUMENT_ID}  ConvertPath:{convertDoc.ConvertPath}  ");
171 174

  
172
                var items = repository.UpdateStatusAsync("", convertDoc.ID, convertDoc.STATUS, convertDoc.TOTAL_PAGE, convertDoc.CURRENT_PAGE, "").GetAwaiter().GetResult();
175
                var status = repository.UpdateStatusAsync("", convertDoc.ID , convertDoc.STATUS, convertDoc.TOTAL_PAGE, convertDoc.CURRENT_PAGE, "").GetAwaiter().GetResult();
173 176

  
177
                Assert.That(status, Is.EqualTo(1));
174 178

  
179
              
175 180
            }
176 181
        }
177 182

  

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)