프로젝트

일반

사용자정보

개정판 9e974b65

ID9e974b6534b0393c9805e641484ea36c83de0a50
상위 7864cac7
하위 9f42e700

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

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

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