Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Feb 19, 2025
1 parent b1d40f5 commit 3e0ceed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions test/EntityChange.Tests/EntityCompareTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,8 @@ public async Task CompareComplexCompareTest()
configuration.Configure(config => config
.Entity<Contact>(e =>
{
e.Property(p => p.Created).Formatter(p => p.ToShortDateString());
e.Property(p => p.Updated).Formatter(p => p.ToShortDateString());
e.Property(p => p.FirstName).Display("First Name");
e.Collection(p => p.Roles)
.CollectionComparison(CollectionComparison.ObjectEquality)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[
{
PropertyName: Updated,
DisplayName: Updated,
Path: Updated,
Operation: Replace,
OriginalValue: DateTime_1,
CurrentValue: DateTime_2,
OriginalFormatted: Date_1,
CurrentFormatted: Date_2
},
{
PropertyName: Roles,
DisplayName: Roles,
Expand Down Expand Up @@ -36,16 +46,6 @@
OriginalFormatted: New,
CurrentFormatted: Verified
},
{
PropertyName: Updated,
DisplayName: Updated,
Path: Updated,
Operation: Replace,
OriginalValue: DateTime_1,
CurrentValue: DateTime_2,
OriginalFormatted: 1/6/2024 12:00:00 AM,
CurrentFormatted: 1/7/2024 12:00:00 AM
},
{
PropertyName: Zip,
DisplayName: Zip,
Expand Down

0 comments on commit 3e0ceed

Please sign in to comment.