-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented support of new JsonLogic functions:
-date_add -now -toUpperCase -toLowerCase
- Loading branch information
ivan
committed
May 2, 2023
1 parent
d66ab27
commit 1363235
Showing
9 changed files
with
267 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
shesha-core/test/Shesha.Tests/TestingUtils/StaticClockProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Abp.Timing; | ||
using System; | ||
|
||
namespace Shesha.Tests.TestingUtils | ||
{ | ||
/// <summary> | ||
/// Static clock provider, is used for unit tests only | ||
/// It's a cope of the <see cref="UnspecifiedClockProvider"/> with just one change - after first call of <see cref="Now"/> the time stops | ||
/// </summary> | ||
public class StaticClockProvider : IClockProvider | ||
{ | ||
private DateTime? _fixedTime = null; | ||
|
||
public DateTime Now => _fixedTime ?? (DateTime)(_fixedTime = DateTime.Now); | ||
|
||
public DateTimeKind Kind => DateTimeKind.Unspecified; | ||
|
||
public bool SupportsMultipleTimezone => false; | ||
|
||
public DateTime Normalize(DateTime dateTime) | ||
{ | ||
return dateTime; | ||
} | ||
|
||
internal StaticClockProvider() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"ConnectionStrings": { | ||
"TestDB": "Data Source=.\\sql2019;Initial Catalog=houghton-his-test2;Integrated Security=True" | ||
"TestDB": "Data Source=.; Initial Catalog=SheshaFunctionalTests;Integrated Security=SSPI" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.