Added RedirectUsingNamedRoute
[castle.git] / Components / Validator / Castle.Components.Validator.Tests / Models / Person.cs
bloba1bbe8046cf24445d2c114b135dc7ece0cb9b557
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.Components.Validator.Tests.Models
17 public class Person
19 private int id, age;
20 private string name;
21 private string address;
23 public Person()
27 public Person(int id, int age, string name, string address)
29 this.id = id;
30 this.age = age;
31 this.name = name;
32 this.address = address;
35 [ValidateNonEmpty]
36 public int Id
38 get { return id; }
39 set { id = value; }
42 [ValidateNonEmpty]
43 public int Age
45 get { return age; }
46 set { age = value; }
49 [ValidateNonEmpty]
50 public string Name
52 get { return name; }
53 set { name = value; }
56 [ValidateNonEmpty]
57 public string Address
59 get { return address; }
60 set { address = value; }