Say I have a class like this:
public abstract class Product
{
public Guid id {get; set;}
public string description {get; set;}
}
This class is populated from the database. I am writing a unit test to decide if two products are the same. How do I establish if two entities are equal:
1) Guid only - this is the primary key from the database so is unique. Not even sure that this member should be in my class
2) Description only - this is always unique
3) GUID and Description