using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TestCasePlanner.ViewModels
{
    public class ListTestCasesViewModel
    {
        [Display(Name = "TestCaseTitle", ResourceType = typeof(Resources.Resources))]
        public string Title { get; set; }

        [Display(Name = "TestCaseID", ResourceType = typeof(Resources.Resources))]
        public string ExternalID { get; set; }

        public string ID { get; set; }
    }

    public class SelectTestSuiteViewModel
    {
        public string Name { get; set; }

        public int ID { get; set; }

        public int SelectedTestSuiteID { get; set; }
    }

    public class NewTestCaseViewModel
    {
        [Required]
        public string Title { get; set; }
        
        public string Description { get; set; }
        public string Prerequsity { get; set; }

        public int Estimate { get; set; }
        
        [Display(Name = "Test suite")]
        public string SelectedTestSuiteID { get; set; }

        public IEnumerable<System.Web.Mvc.SelectListItem> TestSuites { get; set; }
    }

    public class DisplayTestCaseViewModel
    {
        public string Title { get; set; }
        public string Description { get; set; }
        public string Prerequsity { get; set; }
        public string ExternalID { get; set; }
        public string CreatedBy { get; set; }
        public string EditedBy { get; set; }
        public DateTime DateCreated { get; set; }
        public DateTime? DateUpdated { get; set; }
    }

    public class AddStepsToTestCaseViewModel
    {
        public string Step { get; set; }
        public string Result { get; set; }
    }
}