Skip to content

Commit bf3b3e2

Browse files
committed
Support DateOnly and TimeOnly
1 parent e78f783 commit bf3b3e2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/DynamoDBGenerator.SourceGenerator.Benchmarks/Benchmarks/SG_BenchMarker.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Func<Dictionary<string, AttributeValue>, T> unMarshaller
3131
private static Fixture SetupFixture()
3232
{
3333
var fixture = new Fixture();
34-
34+
fixture.Customize<DateOnly>(o => o.FromFactory((DateTime dt) => DateOnly.FromDateTime(dt)));
35+
fixture.Customize<TimeOnly>(o => o.FromFactory((DateTime dt) => TimeOnly.FromDateTime(dt)));
3536
// Allow recursive types
3637
fixture.Behaviors
3738
.OfType<ThrowingRecursionBehavior>()

0 commit comments

Comments
 (0)