개정판 5d863c06
convert service 테스트 수정
Change-Id: Ifa2d8b29887e52b4597c0fb912db96c87dd02b34
ConvertService/ServiceBase/ServiceUnitTest/DatabaseTest.cs | ||
---|---|---|
5 | 5 |
namespace ServiceUnitTest |
6 | 6 |
{ |
7 | 7 |
[TestClass] |
8 |
public class DatabaseTest |
|
8 |
public class DatabaseTest : DataBaseTestBase
|
|
9 | 9 |
{ |
10 | 10 |
[TestMethod] |
11 | 11 |
public void SetConvertDocTest() |
12 | 12 |
{ |
13 |
//using (Markus.Service.DataBase.ConvertDatabase database = new Markus.Service.DataBase.ConvertDatabase("111111")) |
|
14 |
//{ |
|
15 |
// Assert.IsTrue(database.SetConvertDoc("111111", "1", "test.pdf")); |
|
16 |
//} |
|
17 | 13 |
} |
18 | 14 |
|
19 | 15 |
[TestMethod] |
20 | 16 |
public void GetConvertItemTest() |
21 | 17 |
{ |
22 |
string connection = @"data source=.\SQLEXPRESS;initial catalog=Markus;persist security info=True;user id=ConvertService;Password=ConvertService;MultipleActiveResultSets=True;"; |
|
23 |
|
|
24 |
using (Markus.Service.DataBase.ConvertDatabase database = new Markus.Service.DataBase.ConvertDatabase(connection)) |
|
25 |
{ |
|
26 |
var item = database.GetConvertItem("111111","1"); |
|
27 |
|
|
28 |
Assert.IsNotNull(item); |
|
29 |
} |
|
18 |
var item = database.GetConvertItem("111111","1"); |
|
19 |
Assert.IsNotNull(item); |
|
30 | 20 |
} |
31 | 21 |
} |
32 | 22 |
} |
내보내기 Unified diff