File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
test/JsonApiDotNetCoreExampleTests/IntegrationTests/AtomicOperations Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -1290,7 +1290,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
1290
1290
} ) ;
1291
1291
}
1292
1292
1293
- [ Fact ( Skip = "TODO: Make this test work." ) ]
1293
+ [ Fact ]
1294
1294
public async Task Can_add_to_ManyToMany_relationship_using_local_ID ( )
1295
1295
{
1296
1296
// Arrange
@@ -1408,8 +1408,8 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
1408
1408
playlistInDatabase . Name . Should ( ) . Be ( newPlaylistName ) ;
1409
1409
1410
1410
playlistInDatabase . PlaylistMusicTracks . Should ( ) . HaveCount ( 2 ) ;
1411
- playlistInDatabase . PlaylistMusicTracks [ 0 ] . MusicTrack . Id . Should ( ) . Be ( existingTrack . Id ) ;
1412
- playlistInDatabase . PlaylistMusicTracks [ 1 ] . MusicTrack . Id . Should ( ) . Be ( newTrackId ) ;
1411
+ playlistInDatabase . PlaylistMusicTracks . Should ( ) . ContainSingle ( playlistMusicTrack => playlistMusicTrack . MusicTrack . Id == existingTrack . Id ) ;
1412
+ playlistInDatabase . PlaylistMusicTracks . Should ( ) . ContainSingle ( playlistMusicTrack => playlistMusicTrack . MusicTrack . Id == newTrackId ) ;
1413
1413
} ) ;
1414
1414
}
1415
1415
@@ -1534,13 +1534,12 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
1534
1534
trackInDatabase . Title . Should ( ) . Be ( newTrackTitle ) ;
1535
1535
1536
1536
trackInDatabase . Performers . Should ( ) . HaveCount ( 1 ) ;
1537
-
1538
1537
trackInDatabase . Performers [ 0 ] . Id . Should ( ) . Be ( existingPerformer . Id ) ;
1539
1538
trackInDatabase . Performers [ 0 ] . ArtistName . Should ( ) . Be ( existingPerformer . ArtistName ) ;
1540
1539
} ) ;
1541
1540
}
1542
1541
1543
- [ Fact ( Skip = "TODO: Make this test work." ) ]
1542
+ [ Fact ]
1544
1543
public async Task Can_remove_from_ManyToMany_relationship_using_local_ID ( )
1545
1544
{
1546
1545
// Arrange
Original file line number Diff line number Diff line change 1
- namespace JsonApiDotNetCoreExampleTests . IntegrationTests . AtomicOperations
1
+ using System ;
2
+
3
+ namespace JsonApiDotNetCoreExampleTests . IntegrationTests . AtomicOperations
2
4
{
3
5
public sealed class PlaylistMusicTrack
4
6
{
5
7
public long PlaylistId { get ; set ; }
6
8
public Playlist Playlist { get ; set ; }
7
9
8
- public long MusicTrackId { get ; set ; }
10
+ public Guid MusicTrackId { get ; set ; }
9
11
public MusicTrack MusicTrack { get ; set ; }
10
12
}
11
13
}
You can’t perform that action at this time.
0 commit comments