Skip to content

Commit 94e8ea4

Browse files
committed
WIP
1 parent 2e7fc3f commit 94e8ea4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/Dynatello.Tests/ToGetItemRequestTests.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void Build_Request_CompositeKeys_InvalidPartition()
2222
{
2323
var act = () => Cat.GetByCompositeInvalidPartition
2424
.OnTable("TABLE")
25-
.ToGetRequestBuilder(x => x.Item1, x => x.Item2)
25+
.ToGetRequestBuilder(x => x.Id, x => x.HomeId)
2626
.Build(("", Guid.Empty));
2727

2828
act.Should()
@@ -35,7 +35,7 @@ public void Build_Request_CompositeKeys_InvalidRange()
3535
{
3636
var act = () => Cat.GetByCompositeInvalidRange
3737
.OnTable("TABLE")
38-
.ToGetRequestBuilder(x => x.Item1, x => x.Item2)
38+
.ToGetRequestBuilder(x => x.Id, x => x.HomeId)
3939
.Build((Guid.Empty, ""));
4040

4141
act.Should()
@@ -48,7 +48,7 @@ public void Build_Request_CompositeKeys_InvalidPartitionAndRange()
4848
{
4949
var act = () => Cat.GetByCompositeInvalidPartitionAndRange
5050
.OnTable("TABLE")
51-
.ToGetRequestBuilder(x => x.Item1, x => x.Item2)
51+
.ToGetRequestBuilder(x => x.Id, x => x.HomeId)
5252
.Build((2.3, ""));
5353

5454
act.Should()

tests/Dynatello.Tests/ToQueryRequestTests.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ public void Build_Request_FilterExpression()
8080
[DynamoDBMarshaller(typeof(Cat), PropertyName = "GetByCompositeKey", ArgumentType = typeof((Guid Id, Guid HomeId)))]
8181
[DynamoDBMarshaller(typeof(Cat), PropertyName = "GetById", ArgumentType = typeof(Guid))]
8282
[DynamoDBMarshaller(typeof(Cat), PropertyName = "GetByInvalidPartition", ArgumentType = typeof(string))]
83-
[DynamoDBMarshaller(typeof(Cat), PropertyName = "GetByCompositeInvalidPartition", ArgumentType = typeof((string, Guid)))]
84-
[DynamoDBMarshaller(typeof(Cat), PropertyName = "GetByCompositeInvalidRange", ArgumentType = typeof((Guid, string)))]
85-
[DynamoDBMarshaller(typeof(Cat), PropertyName = "GetByCompositeInvalidPartitionAndRange", ArgumentType = typeof((double, string)))]
83+
[DynamoDBMarshaller(typeof(Cat), PropertyName = "GetByCompositeInvalidPartition", ArgumentType = typeof((string Id, Guid HomeId)))]
84+
[DynamoDBMarshaller(typeof(Cat), PropertyName = "GetByCompositeInvalidRange", ArgumentType = typeof((Guid Id, string HomeId)))]
85+
[DynamoDBMarshaller(typeof(Cat), PropertyName = "GetByCompositeInvalidPartitionAndRange", ArgumentType = typeof((double Id, string HomeId)))]
8686
public readonly partial record struct Cat(
8787
[property: DynamoDBHashKey] Guid Id,
8888
[property: DynamoDBRangeKey] Guid HomeId,

0 commit comments

Comments
 (0)