using System;
using System.Collections.Generic;
using System.Text;

namespace GreenTree.Strohrmann.ERP.Core.Domain.Business
{
    public class Unit
    {
        #region Properties

        /// <summary>
        /// Unit id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// Unit name
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Unit short name
        /// </summary>
        public string ShortName { get; set; }

        /// <summary>
        /// Unit description
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// Unit materials
        /// </summary>
        public virtual ICollection<Material> Materials { get; set; }

        #endregion

        #region Ctor

        /// <summary>
        /// Initializes a new instance of the Unit class
        /// </summary>
        public Unit() { }

        /// <summary>
        /// Initializes a new instance of the Unit class
        /// </summary>
        /// <param name="id">The id.</param>
        /// <param name="name">The name.</param>
        /// <param name="shortName">The short name.</param>
        /// <param name="description">The description.</param>
        public Unit(int id, string name, string shortName, string description)
        {
            Id = id;
            Name = name;
            ShortName = shortName;
            Description = description;
        }

        #endregion
    }
}
