namespace RealEstateTransactions.Entities
{
    public class Buyer
    {
        public int Id { get; private set; }

        public string Full_name { get; private set; } = string.Empty;

        public int Passport_series { get; private set; }

        public int Passport_number { get; private set; }

        public static Buyer CreateBuyer(int id, string fullName, int passportSeries, int passportNumber)
        {
            return new Buyer
            {
                Id = id,
                Full_name = fullName,
                Passport_series = passportSeries,
                Passport_number = passportNumber
            };
        }
    }
}