-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathTestRunner.cs
More file actions
39 lines (31 loc) · 1.08 KB
/
TestRunner.cs
File metadata and controls
39 lines (31 loc) · 1.08 KB
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
using Oracle.ManagedDataAccess.Client;
using System;
namespace utPLSQL
{
public abstract class TestRunner<T>
{
internal OracleConnection produceConnection;
internal OracleConnection consumeConnection;
public void Connect(string username, string password, string database)
{
string connectionString = $"User Id={username};Password={password};Data Source={database}";
produceConnection = new OracleConnection(connectionString);
produceConnection.Open();
consumeConnection = new OracleConnection(connectionString);
consumeConnection.Open();
}
public void Close()
{
if (produceConnection != null)
{
produceConnection.Close();
}
if (consumeConnection != null)
{
consumeConnection.Close();
}
}
public abstract void RunTests(string type, string owner, string name, string subType);
public abstract void ConsumeResult(Action<T> consumer);
}
}