Skip to content

Commit

Permalink
fix: signatory.signatureOrder.status should not be null
Browse files Browse the repository at this point in the history
  • Loading branch information
mickhansen committed Apr 9, 2024
1 parent c75d16d commit e8b7a1d
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public async void MutationSupportsComposite()
.Where(e => e is AllOfSignatureEvidenceProvider)
.First();
Assert.NotNull(signatureOrder?.id);
Assert.Equal(SignatureOrderStatus.OPEN, signatureOrder?.status);
}
}
}
2 changes: 2 additions & 0 deletions Criipto.Signatures.IntegrationTests/QuerySignatoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public async void QueryReturnsSignatory()
// Assert
Assert.NotNull(actual?.id);
Assert.Equal(signatory.id, actual!.id);
Assert.Equal(SignatoryStatus.OPEN, signatory.status);
Assert.Equal(SignatureOrderStatus.OPEN, signatory.signatureOrder.status);
}
}

Expand Down
39 changes: 39 additions & 0 deletions Criipto.Signatures/Operations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down Expand Up @@ -130,6 +133,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down Expand Up @@ -198,6 +204,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down Expand Up @@ -253,6 +262,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down Expand Up @@ -308,6 +320,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down Expand Up @@ -386,6 +401,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down Expand Up @@ -463,6 +481,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down Expand Up @@ -531,6 +552,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down Expand Up @@ -627,6 +651,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down Expand Up @@ -695,6 +722,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down Expand Up @@ -761,6 +791,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down Expand Up @@ -850,6 +883,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down Expand Up @@ -919,6 +955,9 @@ fragment BasicSignatory on Signatory {
role
signatureOrder {
id
status
closedAt
expiresAt
}
evidenceProviders {
__typename
Expand Down
3 changes: 3 additions & 0 deletions Criipto.Signatures/operations.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ fragment BasicSignatory on Signatory {

signatureOrder {
id
status
closedAt
expiresAt
}

evidenceProviders {
Expand Down

0 comments on commit e8b7a1d

Please sign in to comment.