using System.Collections.Generic;
using FluentAssertions.Collections;
public int Id { get; set; }
public string Name { get; set; }
static Person Create(int id, string name) => new Person{Id = id, Name = name};
public static void Main()
var lst1 = new List<Person>{Create(1, "a"), Create(2, "b")};
var lst2 = new List<Person>{Create(1, "a"), Create(2, "b")};
lst1.Should().BeEquivalentTo(lst2);