comparison SilverlightValidation/SilverlightValidation.PL/Models/UserModel.cs @ 96:188f8b366e87

Unit test project correctly setup as normal class library DLL.
author stevenhollidge <stevenhollidge@hotmail.com>
date Sat, 05 May 2012 13:29:56 +0100
parents SilverlightValidation/SilverlightValidation/Models/UserModel.cs@241e2f22ed3c
children d0c2cac12376
comparison
equal deleted inserted replaced
95:64e9903703a3 96:188f8b366e87
1 using System;
2 using System.ComponentModel;
3 using SilverlightValidation.Interfaces;
4
5 namespace SilverlightValidation.Models
6 {
7 public class UserModel : IUserModel, ICloneable<UserModel>
8 {
9 public string Username { get; set; }
10 public string Email { get; set; }
11 public string Password { get; set; }
12 public DateTime? DateOfBirth { get; set; }
13 public string Description { get; set; }
14
15 public static UserModel Create()
16 {
17 return new UserModel() { Username = "", Email = "", Password = "", DateOfBirth = null, Description = "" };
18 }
19
20 public UserModel Clone()
21 {
22 return (UserModel) this.MemberwiseClone();
23 }
24 }
25 }