using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using TestCasePlanner.Resources;

namespace TestCasePlanner.Models
{
    public class TestProject
    {
        public int ID { get; set; }

        [Display(Name = "ProjectName", ResourceType = typeof(Resources.Resources))]
        [Required(ErrorMessageResourceType = typeof(Resources.Resources), ErrorMessageResourceName = "ProjectNameRequired")]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.Resources), ErrorMessageResourceName = "ProjectNameLong")]
        public string Name { get; set; }

        [Display(Name = "ProjectDescription", ResourceType = typeof(Resources.Resources))]
        [StringLength(256, ErrorMessageResourceType = typeof(Resources.Resources), ErrorMessageResourceName = "ProjectDescriptionNameLong")]
        public string Description { get; set; }

        public virtual ICollection<TestCase> TestCases { get; set; }
    }
}