-
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.
Merge pull request #246 from shesha-io/f/datatable-inline-editing
F/datatable inline editing
- Loading branch information
Showing
328 changed files
with
4,906 additions
and
3,544 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" | ||
} | ||
} |
Oops, something went wrong.