public void EntitiesWithEqualIdsShouldBeEqual() { // Arrange var first = new UserSeller().SetId("12345678901234567890123456789012"); var second = new UserSeller().SetId("12345678901234567890123456789012"); // Act var result = first == second; // Arrange result.Should().BeTrue(); }
public void EntitiesWithDifferentIdsShouldNotBeEqual() { // Arrange var first = new UserSeller().SetId("12345678901234567890123456789012"); var second = new UserSeller().SetId("1234567890123456789012345678901233"); // Act var result = first == second; // Arrange result.Should().BeFalse(); }