I have two records:
public record A(string AId, IReadOnlyList<B> list)
public record B(string BId, string Color)
I want to use fluent assertions to compare collections of instances of A, while excluding the proberty BId
e.g: Let's say I have
FirstCollection = {{AId:"AId1", BId:"BId1 ,Color:"Red"} ,{AId:"AId2", BId:"BId2", Color:"Red"}}
SecondCollection = {{AId:"AId1", BId:"BId3", Color:"Red"} ,{AId:"AId2", BId:"BId4", Color:"Red"}}
Asserting the following two collections should pass.