Skip to content

Commit

Permalink
pr-fix: test security plus implementation coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnmoreels committed Jan 24, 2025
1 parent c671736 commit 99bf080
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public async Task CreateTempNoSqlContainerWithCleanMatchingOnTeardown_WhenExisti
}
else
{
options.OnTeardown.CleanMatchingItems(item => item.Id == createdMatched.Id)
options.OnTeardown.CleanMatchingItems(item => item.PartitionKey == createdMatched.GetPartitionKey())
.CleanMatchingItems((Ship item) => item.GetPartitionKey() == createdMatched.GetPartitionKey());
}
});
Expand Down Expand Up @@ -258,7 +258,7 @@ private static Ship CreateShip(string header = "")
.RuleFor(s => s.Id, f => header + "item-" + f.Random.Guid())
.RuleFor(s => s.BoatName, f => f.Person.FirstName)
.RuleFor(s => s.CrewMembers, f => f.Random.Int(1, 10))
.RuleFor(s => s.Destination, f => new Destination { Country = f.Address.Country() })
.RuleFor(s => s.Destination, f => new Destination { Country = f.Random.Guid() + f.Address.Country() })
.Generate();
}

Expand Down

0 comments on commit 99bf080

Please sign in to comment.