개정판 9e974b65
issue #000 TEST 프로젝트 수정.
Change-Id: I1d49f5584f049a3e1b40fcc11105b58a9c55334e
ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBaseDocPagePG.cs | ||
---|---|---|
16 | 16 |
{ |
17 | 17 |
newConvertDocID = repository.CreateAsync(ProjectNo, docUri, "111111").GetAwaiter().GetResult(); |
18 | 18 |
Console.WriteLine($"new id : {newConvertDocID}"); |
19 |
Assert.Pass(newConvertDocID); |
|
19 | 20 |
} |
20 | 21 |
|
21 | 22 |
if (!string.IsNullOrEmpty(newConvertDocID)) |
... | ... | |
25 | 26 |
newDocInfo = repository.CreateAsync(newConvertDocID, 10).GetAwaiter().GetResult(); |
26 | 27 |
|
27 | 28 |
Console.WriteLine($"new id : {newDocInfo}"); |
29 |
Assert.Pass(newDocInfo); |
|
28 | 30 |
} |
29 | 31 |
|
30 | 32 |
|
... | ... | |
34 | 36 |
{ |
35 | 37 |
List<Entities.DOCPAGE> pages = new List<Entities.DOCPAGE>(); |
36 | 38 |
|
37 |
for (int i = 0; i < 20000; i++)
|
|
39 |
for (int i = 0; i < 1000; i++)
|
|
38 | 40 |
{ |
39 | 41 |
pages.Add(new Entities.DOCPAGE { DOCINFO_ID = newDocInfo, PAGE_NUMBER = i + 1, PAGE_WIDTH = "1210", PAGE_HEIGHT = "1210", PAGE_ANGLE = 0 }); |
40 | 42 |
} |
41 | 43 |
|
42 |
Stopwatch sw = new Stopwatch(); |
|
43 |
|
|
44 |
sw.Start(); |
|
45 |
|
|
46 | 44 |
var result = repository.CreateAsync(pages).GetAwaiter().GetResult(); |
47 |
|
|
48 |
|
|
49 |
sw.Stop(); |
|
50 |
|
|
51 |
Console.WriteLine($"End Milliseconds id : {sw.ElapsedMilliseconds}"); |
|
52 |
|
|
45 |
if (result) |
|
46 |
{ |
|
47 |
Assert.Pass(); |
|
48 |
} |
|
49 |
else |
|
50 |
{ |
|
51 |
Assert.Fail(); |
|
52 |
} |
|
53 | 53 |
} |
54 | 54 |
} |
55 |
else |
|
56 |
{ |
|
57 |
Assert.Fail(); |
|
58 |
} |
|
55 | 59 |
} |
56 | 60 |
|
57 | 61 |
} |
내보내기 Unified diff