This repository was archived by the owner on Jun 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +32
-27
lines changed Expand file tree Collapse file tree 3 files changed +32
-27
lines changed Original file line number Diff line number Diff line change 1
1
namespace GitTools
2
2
{
3
- using System ;
4
- using LibGit2Sharp ;
5
-
6
- public static class TestValues
7
- {
8
- private static DateTimeOffset _simulatedTime = DateTimeOffset . Now . AddHours ( - 1 ) ;
9
-
10
- public static DateTimeOffset Now
11
- {
12
- get
13
- {
14
- _simulatedTime = _simulatedTime . AddMinutes ( 1 ) ;
15
- return _simulatedTime ;
16
- }
17
- }
18
-
19
- public static Signature SignatureNow ( )
20
- {
21
- var dateTimeOffset = Now ;
22
- return Signature ( dateTimeOffset ) ;
23
- }
24
-
25
- public static Signature Signature ( DateTimeOffset dateTimeOffset )
26
- {
27
- return new Signature ( "A. U. Thor" , "[email protected] " , dateTimeOffset ) ;
28
- }
29
- }
3
+ // TODO: constants classes go here
30
4
}
Original file line number Diff line number Diff line change 64
64
</Compile >
65
65
<Compile Include =" App_Packages\LibLog.4.2\LibLog.cs" />
66
66
<Compile Include =" Constants.cs" />
67
+ <Compile Include =" Testing\TestValues.cs" />
67
68
<Compile Include =" Context\ContextBase.cs" />
68
69
<Compile Include =" Context\Interfaces\IAuthenticationContext.cs" />
69
70
<Compile Include =" Context\Interfaces\IContext.cs" />
Original file line number Diff line number Diff line change
1
+ namespace GitTools . Testing
2
+ {
3
+ using System ;
4
+ using LibGit2Sharp ;
5
+
6
+ public static class TestValues
7
+ {
8
+ private static DateTimeOffset _simulatedTime = DateTimeOffset . Now . AddHours ( - 1 ) ;
9
+
10
+ public static DateTimeOffset Now
11
+ {
12
+ get
13
+ {
14
+ _simulatedTime = _simulatedTime . AddMinutes ( 1 ) ;
15
+ return _simulatedTime ;
16
+ }
17
+ }
18
+
19
+ public static Signature SignatureNow ( )
20
+ {
21
+ var dateTimeOffset = Now ;
22
+ return Signature ( dateTimeOffset ) ;
23
+ }
24
+
25
+ public static Signature Signature ( DateTimeOffset dateTimeOffset )
26
+ {
27
+ return new Signature ( "A. U. Thor" , "[email protected] " , dateTimeOffset ) ;
28
+ }
29
+ }
30
+ }
You can’t perform that action at this time.
0 commit comments