Skip to content

Commit 0318067

Browse files
Add null URI to existing converter test
1 parent 670f8a1 commit 0318067

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

tests/PhenX.EntityFrameworkCore.BulkInsert.Tests/DbContext/TestEntityWithConverters.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ public class TestEntityWithConverters : TestEntityBase
1414

1515
[Column("created_at")]
1616
public DateTime CreatedAt { get; set; }
17+
18+
[Column("uri")]
19+
public Uri? Uri { get; set; }
1720
}
1821

tests/PhenX.EntityFrameworkCore.BulkInsert.Tests/Tests/Basic/BasicTestsBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ public async Task InsertEntities_AndReturn_WithEntityWithValueConverters(InsertS
176176

177177
var entities = new List<TestEntityWithConverters>
178178
{
179-
new TestEntityWithConverters() { Name = $"{_run}_Entity1", CreatedAt = now },
180-
new TestEntityWithConverters() { Name = $"{_run}_Entity2", CreatedAt = now.AddDays(-1) }
179+
new TestEntityWithConverters() { Name = $"{_run}_Entity1", CreatedAt = now, Uri = null },
180+
new TestEntityWithConverters() { Name = $"{_run}_Entity2", CreatedAt = now.AddDays(-1), Uri = new Uri("http://example.com/test") }
181181
};
182182

183183
// Act

0 commit comments

Comments
 (0)