forked from MoonStorm/FastCrud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDatabaseTestContext.cs
27 lines (23 loc) · 908 Bytes
/
DatabaseTestContext.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
namespace Dapper.FastCrud.Tests
{
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Diagnostics;
public class DatabaseTestContext
{
private const int MaxEntityTestingCapacity = 100000;
public DatabaseTestContext()
{
this.Stopwatch = new Stopwatch();
// ensure the capacity can hold all the processed entities
this.QueriedEntities = new List<object>(MaxEntityTestingCapacity);
this.LocalInsertedEntities = new List<object>(MaxEntityTestingCapacity);
}
public DbConnection DatabaseConnection { get; set; }
public Stopwatch Stopwatch { get; private set; }
public List<object> QueriedEntities { get; set; }
public List<object> LocalInsertedEntities { get; set; }
public int QueriedEntitiesDbCount { get; set; }
}
}