@@ -67,6 +67,7 @@ public async Task PostAdjunct_CreatesExternalAdjunct()
6767 "mediaType": "a-mediaType",
6868 "label": {"label": ["value"]},
6969 "motivation": "a motivation",
70+ "provides": "translation",
7071 "language": ["en"],
7172 }
7273 """ ;
@@ -90,6 +91,7 @@ public async Task PostAdjunct_CreatesExternalAdjunct()
9091 adjunct . ExternalId . Should ( ) . Be ( "https://some-location.com/an-adjunct" ) ;
9192 adjunct . PublicId . Should ( ) . Be ( "https://some-location.com/an-adjunct" ) ;
9293 adjunct . Motivation . Should ( ) . Be ( "a motivation" ) ;
94+ adjunct . Provides . Should ( ) . Be ( "translation" ) ;
9395
9496 response . Headers . Location . Should ( )
9597 . Be (
@@ -580,7 +582,7 @@ public async Task PutAdjunct_UpdatesAdjunct_WhenIdAlreadyExists()
580582 // Arrange
581583 var assetId = AssetIdGenerator . GetAssetId ( ) ;
582584 await dbContext . Images . AddTestAsset ( assetId )
583- . WithTestAdjunct ( "someAdjunctId" , created : DateTime . UtcNow . AddDays ( - 2 ) , motivation : "something" ) ;
585+ . WithTestAdjunct ( "someAdjunctId" , created : DateTime . UtcNow . AddDays ( - 2 ) , motivation : "something" , provides : "something" ) ;
584586 await dbContext . SaveChangesAsync ( ) ;
585587
586588 const string updateAdjunctJson = """
@@ -592,7 +594,8 @@ await dbContext.Images.AddTestAsset(assetId)
592594 "mediaType": "a-mediaType",
593595 "label": {"label": ["value"]},
594596 "language": ["en"],
595- "motivation": "changed"
597+ "motivation": "changed",
598+ "provides": "changed"
596599 }
597600 """ ;
598601
@@ -617,6 +620,7 @@ await dbContext.Images.AddTestAsset(assetId)
617620 adjunct . ExternalId . Should ( ) . Be ( "https://some-location.com/an-adjunct" ) ;
618621 adjunct . PublicId . Should ( ) . Be ( "https://some-location.com/an-adjunct" ) ;
619622 adjunct . Motivation . Should ( ) . Be ( "changed" ) ;
623+ adjunct . Provides . Should ( ) . Be ( "changed" ) ;
620624
621625 A . CallTo ( ( ) => DeliverableNotificationSender . SendDeliverableModifiedMessage (
622626 A < NotificationRecord < DLCS . Model . Assets . Adjunct > > . That . Matches ( r => r . ChangeType == ChangeType . Update && r . After . AssetId == assetId ) ,
0 commit comments