File tree 1 file changed +4
-4
lines changed
test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/Updating/Resources
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -963,11 +963,11 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
963
963
public async Task Cannot_update_resource_with_readonly_attribute ( )
964
964
{
965
965
// Arrange
966
- WorkItem existingWorkItem = _fakers . WorkItem . Generate ( ) ;
966
+ WorkItemGroup existingWorkItemGroup = _fakers . WorkItemGroup . Generate ( ) ;
967
967
968
968
await _testContext . RunOnDatabaseAsync ( async dbContext =>
969
969
{
970
- dbContext . WorkItems . Add ( existingWorkItem ) ;
970
+ dbContext . Groups . Add ( existingWorkItemGroup ) ;
971
971
await dbContext . SaveChangesAsync ( ) ;
972
972
} ) ;
973
973
@@ -976,15 +976,15 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
976
976
data = new
977
977
{
978
978
type = "workItemGroups" ,
979
- id = existingWorkItem . StringId ,
979
+ id = existingWorkItemGroup . StringId ,
980
980
attributes = new
981
981
{
982
982
isDeprecated = true
983
983
}
984
984
}
985
985
} ;
986
986
987
- string route = $ "/workItemGroups/{ existingWorkItem . StringId } ";
987
+ string route = $ "/workItemGroups/{ existingWorkItemGroup . StringId } ";
988
988
989
989
// Act
990
990
( HttpResponseMessage httpResponse , Document responseDocument ) = await _testContext . ExecutePatchAsync < Document > ( route , requestBody ) ;
You can’t perform that action at this time.
0 commit comments