Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/24/11 17:35:29 (14 years ago)
Author:
cfleisch
Message:

#1499 added test to validate StringComparisonFilter in view Filters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/ViewModels/FilterModel.cs

    r6247 r6268  
    66using HLWebOKBQueryPlugin.Helpers;
    77using HLWebOKBQueryPlugin.ViewModels;
     8using System.ComponentModel.DataAnnotations;
    89
    910namespace HLWebOKBQueryPlugin.Models
     
    2526        public static string ComparisonDropDownList { get { return "comparisonDropDownList"; } }
    2627
     28        [Required(ErrorMessage = "Field is required!")]
     29        [StringLength(50, ErrorMessage = "Maximum 50 characters allowed!")]
     30        public string IntValue { get; set; }
     31
    2732        /// <summary>
    2833        /// Constructor
     
    200205                                {
    201206                                    ((StringComparisonFilter)f).Value = kvp.Value;
     207                                    IntValue = kvp.Value;
    202208                                }
    203209                                else if (kvp.Key.Equals(FilterModel.ComparisonDropDownList))
Note: See TracChangeset for help on using the changeset viewer.