개정판 264f0f92
issue #000 Unit Test Projects add
Change-Id: Iff6be74b4b883ee831191a24fe90510a8caac191
ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBaseDocInfo.cs | ||
---|---|---|
1 |
using NUnit.Framework; |
|
2 |
using System; |
|
3 |
using System.Collections.Generic; |
|
4 |
|
|
5 |
namespace Markus.Service.DataBase.Test |
|
6 |
{ |
|
7 |
public class DataBaseDocInfo : TestBaseMSSQL |
|
8 |
{ |
|
9 |
//[Test, Description("")] |
|
10 |
public void DocPageInsert() |
|
11 |
{ |
|
12 |
using (Markus.Service.DataBase.Repositories.DOCPAGERepository repository = new Repositories.DOCPAGERepository(ConnectionStr, dbtype)) |
|
13 |
{ |
|
14 |
List<Entities.DOCPAGE> pages = new List<Entities.DOCPAGE>(); |
|
15 |
|
|
16 |
for (int i = 0; i < 150000; i++) |
|
17 |
{ |
|
18 |
pages.Add(new Entities.DOCPAGE { DOCINFO_ID = "a764548c-9f44-4c4d-4597-f7ac43d2b7c1", PAGE_NUMBER = i+1, PAGE_WIDTH = "1210", PAGE_HEIGHT = "1210", PAGE_ANGLE = 0 }); |
|
19 |
} |
|
20 |
|
|
21 |
var result = repository.CreateAsync(pages).GetAwaiter().GetResult(); |
|
22 |
|
|
23 |
Console.WriteLine($"new id : {result}"); |
|
24 |
} |
|
25 |
} |
|
26 |
} |
|
27 |
} |
ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBaseDocInfoPG.cs | ||
---|---|---|
1 |
using NUnit.Framework; |
|
2 |
using System; |
|
3 |
using System.Collections.Generic; |
|
4 |
|
|
5 |
namespace Markus.Service.DataBase.Test |
|
6 |
{ |
|
7 |
public class DataBaseDocInfoPG : TestBasePG |
|
8 |
{ |
|
9 |
//[Test, Description("")] |
|
10 |
public void DocPageInsert() |
|
11 |
{ |
|
12 |
using (Markus.Service.DataBase.Repositories.DOCPAGERepository repository = new Repositories.DOCPAGERepository(ConnectionStr, dbtype)) |
|
13 |
{ |
|
14 |
List<Entities.DOCPAGE> pages = new List<Entities.DOCPAGE>(); |
|
15 |
|
|
16 |
for (int i = 0; i < 150000; i++) |
|
17 |
{ |
|
18 |
pages.Add(new Entities.DOCPAGE { DOCINFO_ID = "a764548c-9f44-4c4d-4597-f7ac43d2b7c1", PAGE_NUMBER = i+1, PAGE_WIDTH = "1210", PAGE_HEIGHT = "1210", PAGE_ANGLE = 0 }); |
|
19 |
} |
|
20 |
|
|
21 |
var result = repository.CreateAsync(pages).GetAwaiter().GetResult(); |
|
22 |
|
|
23 |
Console.WriteLine($"new id : {result}"); |
|
24 |
} |
|
25 |
} |
|
26 |
} |
|
27 |
} |
ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBaseDocPagePG.cs | ||
---|---|---|
1 |
using NUnit.Framework; |
|
2 |
using System; |
|
3 |
using System.Collections.Generic; |
|
4 |
|
|
5 |
namespace Markus.Service.DataBase.Test |
|
6 |
{ |
|
7 |
public class DataBaseDocPagePG : TestBasePG |
|
8 |
{ |
|
9 |
//[Test, Description("")] |
|
10 |
public void DocPageInsert() |
|
11 |
{ |
|
12 |
using (Markus.Service.DataBase.Repositories.DOCPAGERepository repository = new Repositories.DOCPAGERepository(ConnectionStr, dbtype)) |
|
13 |
{ |
|
14 |
List<Entities.DOCPAGE> pages = new List<Entities.DOCPAGE>(); |
|
15 |
|
|
16 |
for (int i = 0; i < 150000; i++) |
|
17 |
{ |
|
18 |
pages.Add(new Entities.DOCPAGE { DOCINFO_ID = "a764548c-9f44-4c4d-4597-f7ac43d2b7c1", PAGE_NUMBER = i+1, PAGE_WIDTH = "1210", PAGE_HEIGHT = "1210", PAGE_ANGLE = 0 }); |
|
19 |
} |
|
20 |
|
|
21 |
var result = repository.CreateAsync(pages).GetAwaiter().GetResult(); |
|
22 |
|
|
23 |
Console.WriteLine($"new id : {result}"); |
|
24 |
} |
|
25 |
} |
|
26 |
} |
|
27 |
} |
ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBaseDocumentitem.cs | ||
---|---|---|
1 |
using NUnit.Framework; |
|
2 |
using System; |
|
3 |
using System.Collections.Generic; |
|
4 |
|
|
5 |
namespace Markus.Service.DataBase.Test |
|
6 |
{ |
|
7 |
public class DataBaseDocumentitem : TestBaseMSSQL |
|
8 |
{ |
|
9 |
//[Test, Description("")] |
|
10 |
public void DocPageInsert() |
|
11 |
{ |
|
12 |
using (Markus.Service.DataBase.Repositories.DOCPAGERepository repository = new Repositories.DOCPAGERepository(ConnectionStr, dbtype)) |
|
13 |
{ |
|
14 |
List<Entities.DOCPAGE> pages = new List<Entities.DOCPAGE>(); |
|
15 |
|
|
16 |
for (int i = 0; i < 150000; i++) |
|
17 |
{ |
|
18 |
pages.Add(new Entities.DOCPAGE { DOCINFO_ID = "a764548c-9f44-4c4d-4597-f7ac43d2b7c1", PAGE_NUMBER = i+1, PAGE_WIDTH = "1210", PAGE_HEIGHT = "1210", PAGE_ANGLE = 0 }); |
|
19 |
} |
|
20 |
|
|
21 |
var result = repository.CreateAsync(pages).GetAwaiter().GetResult(); |
|
22 |
|
|
23 |
Console.WriteLine($"new id : {result}"); |
|
24 |
} |
|
25 |
} |
|
26 |
} |
|
27 |
} |
ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBaseDocumentitemPG.cs | ||
---|---|---|
1 |
using NUnit.Framework; |
|
2 |
using System; |
|
3 |
using System.Collections.Generic; |
|
4 |
|
|
5 |
namespace Markus.Service.DataBase.Test |
|
6 |
{ |
|
7 |
public class DataBaseDocumentitemPG : TestBasePG |
|
8 |
{ |
|
9 |
//[Test, Description("")] |
|
10 |
public void DocPageInsert() |
|
11 |
{ |
|
12 |
using (Markus.Service.DataBase.Repositories.DOCPAGERepository repository = new Repositories.DOCPAGERepository(ConnectionStr, dbtype)) |
|
13 |
{ |
|
14 |
List<Entities.DOCPAGE> pages = new List<Entities.DOCPAGE>(); |
|
15 |
|
|
16 |
for (int i = 0; i < 150000; i++) |
|
17 |
{ |
|
18 |
pages.Add(new Entities.DOCPAGE { DOCINFO_ID = "a764548c-9f44-4c4d-4597-f7ac43d2b7c1", PAGE_NUMBER = i+1, PAGE_WIDTH = "1210", PAGE_HEIGHT = "1210", PAGE_ANGLE = 0 }); |
|
19 |
} |
|
20 |
|
|
21 |
var result = repository.CreateAsync(pages).GetAwaiter().GetResult(); |
|
22 |
|
|
23 |
Console.WriteLine($"new id : {result}"); |
|
24 |
} |
|
25 |
} |
|
26 |
} |
|
27 |
} |
ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBaseProperties.cs | ||
---|---|---|
1 |
using NUnit.Framework; |
|
2 |
using System; |
|
3 |
using System.Collections.Generic; |
|
4 |
|
|
5 |
namespace Markus.Service.DataBase.Test |
|
6 |
{ |
|
7 |
public class DataBaseProperties : TestBaseMSSQL |
|
8 |
{ |
|
9 |
//[Test, Description("")] |
|
10 |
public void DocPageInsert() |
|
11 |
{ |
|
12 |
using (Markus.Service.DataBase.Repositories.DOCPAGERepository repository = new Repositories.DOCPAGERepository(ConnectionStr, dbtype)) |
|
13 |
{ |
|
14 |
List<Entities.DOCPAGE> pages = new List<Entities.DOCPAGE>(); |
|
15 |
|
|
16 |
for (int i = 0; i < 150000; i++) |
|
17 |
{ |
|
18 |
pages.Add(new Entities.DOCPAGE { DOCINFO_ID = "a764548c-9f44-4c4d-4597-f7ac43d2b7c1", PAGE_NUMBER = i+1, PAGE_WIDTH = "1210", PAGE_HEIGHT = "1210", PAGE_ANGLE = 0 }); |
|
19 |
} |
|
20 |
|
|
21 |
var result = repository.CreateAsync(pages).GetAwaiter().GetResult(); |
|
22 |
|
|
23 |
Console.WriteLine($"new id : {result}"); |
|
24 |
} |
|
25 |
} |
|
26 |
} |
|
27 |
} |
ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBasePropertiesPG.cs | ||
---|---|---|
1 |
using NUnit.Framework; |
|
2 |
using System; |
|
3 |
using System.Collections.Generic; |
|
4 |
|
|
5 |
namespace Markus.Service.DataBase.Test |
|
6 |
{ |
|
7 |
public class DataBasePropertiesPG : TestBasePG |
|
8 |
{ |
|
9 |
//[Test, Description("")] |
|
10 |
public void DocPageInsert() |
|
11 |
{ |
|
12 |
using (Markus.Service.DataBase.Repositories.DOCPAGERepository repository = new Repositories.DOCPAGERepository(ConnectionStr, dbtype)) |
|
13 |
{ |
|
14 |
List<Entities.DOCPAGE> pages = new List<Entities.DOCPAGE>(); |
|
15 |
|
|
16 |
for (int i = 0; i < 150000; i++) |
|
17 |
{ |
|
18 |
pages.Add(new Entities.DOCPAGE { DOCINFO_ID = "a764548c-9f44-4c4d-4597-f7ac43d2b7c1", PAGE_NUMBER = i+1, PAGE_WIDTH = "1210", PAGE_HEIGHT = "1210", PAGE_ANGLE = 0 }); |
|
19 |
} |
|
20 |
|
|
21 |
var result = repository.CreateAsync(pages).GetAwaiter().GetResult(); |
|
22 |
|
|
23 |
Console.WriteLine($"new id : {result}"); |
|
24 |
} |
|
25 |
} |
|
26 |
} |
|
27 |
} |
ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBaseServiceproperties.cs | ||
---|---|---|
1 |
using Dapper; |
|
2 |
using NUnit.Framework; |
|
3 |
using System; |
|
4 |
using System.Collections.Generic; |
|
5 |
|
|
6 |
namespace Markus.Service.DataBase.Test |
|
7 |
{ |
|
8 |
/// <summary> |
|
9 |
/// PostgreSQL |
|
10 |
/// </summary> |
|
11 |
public class DataBaseServiceproperties : TestBaseMSSQL |
|
12 |
{ |
|
13 |
public List<string> newConvertDocIDs = new List<string>(); |
|
14 |
[Test, Description("Craete Convert Doc Postgresql Test")] |
|
15 |
public void CreateConvertDoc() |
|
16 |
{ |
|
17 |
using (Markus.Service.DataBase.Repositories.SERVICEPROPERTIESRepository repository = new Repositories.SERVICEPROPERTIESRepository(ConnectionStr, dbtype)) |
|
18 |
{ |
|
19 |
//var newConvertDocID = repository.GetSingleAsync(ProjectNo, docUri, "111111").GetAwaiter().GetResult(); |
|
20 |
|
|
21 |
//Console.WriteLine($"new id : {newConvertDocID}"); |
|
22 |
|
|
23 |
} |
|
24 |
} |
|
25 |
} |
|
26 |
} |
ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBaseServicepropertiesPG.cs | ||
---|---|---|
1 |
using Dapper; |
|
2 |
using NUnit.Framework; |
|
3 |
using System; |
|
4 |
using System.Collections.Generic; |
|
5 |
|
|
6 |
namespace Markus.Service.DataBase.Test |
|
7 |
{ |
|
8 |
/// <summary> |
|
9 |
/// PostgreSQL |
|
10 |
/// </summary> |
|
11 |
public class DataBaseServicepropertiesPG : TestBasePG |
|
12 |
{ |
|
13 |
public List<string> newConvertDocIDs = new List<string>(); |
|
14 |
[Test, Description("Craete Convert Doc Postgresql Test")] |
|
15 |
public void CreateConvertDoc() |
|
16 |
{ |
|
17 |
using (Markus.Service.DataBase.Repositories.SERVICEPROPERTIESRepository repository = new Repositories.SERVICEPROPERTIESRepository(ConnectionStr, dbtype)) |
|
18 |
{ |
|
19 |
//var newConvertDocID = repository.GetSingleAsync(ProjectNo, docUri, "111111").GetAwaiter().GetResult(); |
|
20 |
|
|
21 |
//Console.WriteLine($"new id : {newConvertDocID}"); |
|
22 |
|
|
23 |
} |
|
24 |
} |
|
25 |
} |
|
26 |
} |
ConvertService/ServiceBase/Markus.Service.DataBase.Test/Markus.Service.DataBase.Test.csproj | ||
---|---|---|
39 | 39 |
<WarningLevel>4</WarningLevel> |
40 | 40 |
<PlatformTarget>x64</PlatformTarget> |
41 | 41 |
</PropertyGroup> |
42 |
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> |
|
43 |
<DebugSymbols>true</DebugSymbols> |
|
44 |
<OutputPath>bin\x64\Debug\</OutputPath> |
|
45 |
<DefineConstants>DEBUG;TRACE</DefineConstants> |
|
46 |
<NoStdLib>true</NoStdLib> |
|
47 |
<DebugType>full</DebugType> |
|
48 |
<PlatformTarget>x64</PlatformTarget> |
|
49 |
<ErrorReport>prompt</ErrorReport> |
|
50 |
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> |
|
51 |
</PropertyGroup> |
|
52 |
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> |
|
53 |
<OutputPath>bin\x64\Release\</OutputPath> |
|
54 |
<DefineConstants>TRACE</DefineConstants> |
|
55 |
<Optimize>true</Optimize> |
|
56 |
<NoStdLib>true</NoStdLib> |
|
57 |
<DebugType>pdbonly</DebugType> |
|
58 |
<PlatformTarget>x64</PlatformTarget> |
|
59 |
<ErrorReport>prompt</ErrorReport> |
|
60 |
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> |
|
61 |
</PropertyGroup> |
|
62 |
<PropertyGroup> |
|
63 |
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> |
|
64 |
</PropertyGroup> |
|
42 | 65 |
<ItemGroup> |
66 |
<Reference Include="Microsoft.VisualBasic" /> |
|
43 | 67 |
<Reference Include="System" /> |
44 | 68 |
<Reference Include="System.Core" /> |
45 | 69 |
<Reference Include="System.Data" /> |
46 | 70 |
</ItemGroup> |
47 | 71 |
<ItemGroup> |
72 |
<Compile Include="DataBaseDocInfo.cs" /> |
|
73 |
<Compile Include="DataBaseDocInfoPG.cs" /> |
|
74 |
<Compile Include="DataBaseDocPagePG.cs" /> |
|
75 |
<Compile Include="DataBaseServiceproperties.cs" /> |
|
76 |
<Compile Include="DataBaseServicepropertiesPG.cs" /> |
|
48 | 77 |
<Compile Include="DataBaseConvertDocPG.cs" /> |
49 | 78 |
<Compile Include="DataBaseConvertDoc.cs" /> |
50 | 79 |
<Compile Include="Properties\AssemblyInfo.cs" /> |
... | ... | |
53 | 82 |
<Compile Include="TestBasePG.cs" /> |
54 | 83 |
</ItemGroup> |
55 | 84 |
<ItemGroup> |
56 |
<ProjectReference Include="..\Markus.Service.DataBase.Dapper\Markus.Service.DataBase.Dapper.csproj"> |
|
57 |
<Project>{f835dd07-7f0c-4dbd-a596-f3110d187421}</Project> |
|
58 |
<Name>Markus.Service.DataBase.Dapper</Name> |
|
59 |
</ProjectReference> |
|
60 |
</ItemGroup> |
|
61 |
<ItemGroup> |
|
62 | 85 |
<PackageReference Include="Microsoft.CSharp"> |
63 | 86 |
<Version>4.7.0</Version> |
64 | 87 |
</PackageReference> |
... | ... | |
80 | 103 |
<Version>4.3.1</Version> |
81 | 104 |
</PackageReference> |
82 | 105 |
</ItemGroup> |
106 |
<ItemGroup> |
|
107 |
<ProjectReference Include="..\Markus.Service.DataBase.Dapper\Markus.Service.DataBase.Dapper.csproj"> |
|
108 |
<Project>{f835dd07-7f0c-4dbd-a596-f3110d187421}</Project> |
|
109 |
<Name>Markus.Service.DataBase.Dapper</Name> |
|
110 |
</ProjectReference> |
|
111 |
</ItemGroup> |
|
83 | 112 |
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" /> |
84 | 113 |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
85 | 114 |
</Project> |
내보내기 Unified diff