markus / ConvertService / ServiceBase / ServiceUnitTest / DatabaseTest.cs @ 48e1ab34
이력 | 보기 | 이력해설 | 다운로드 (1.02 KB)
1 | 53c9637d | taeseongkim | using System; |
---|---|---|---|
2 | using System.ServiceModel; |
||
3 | using Microsoft.VisualStudio.TestTools.UnitTesting; |
||
4 | |||
5 | namespace ServiceUnitTest |
||
6 | { |
||
7 | [TestClass] |
||
8 | public class DatabaseTest |
||
9 | { |
||
10 | [TestMethod] |
||
11 | public void SetConvertDocTest() |
||
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 | } |
||
18 | |||
19 | [TestMethod] |
||
20 | public void GetConvertItemTest() |
||
21 | { |
||
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 | } |
||
30 | } |
||
31 | } |
||
32 | } |