-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
40 lines (28 loc) · 872 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using log4net;
using log4net.Config;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace DbOperator
{
class Program
{
static void Main(string[] args)
{
DbWriter db = new DbWriter();
TestResult tr1, tr2;
DateTime start = DateTime.Now;
DateTime end = DateTime.Now;
tr1 = new TestResult("true","passed",start,end,"exception");
tr2 = new TestResult("false", "failed", start, end, "error");
db.writeToDb(tr1);
Console.WriteLine("***");
db.writeToDb(tr2);
Console.ReadKey();
}
}
}