diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SilverlightValidation/SilverlightValidation.PL/Models/UserModel.cs	Sat May 05 13:29:56 2012 +0100
@@ -0,0 +1,25 @@
+using System;
+using System.ComponentModel;
+using SilverlightValidation.Interfaces;
+
+namespace SilverlightValidation.Models
+{
+    public class UserModel : IUserModel, ICloneable<UserModel>
+    {
+        public string Username { get; set; }
+        public string Email { get; set; }
+        public string Password { get; set; }
+        public DateTime? DateOfBirth { get; set; }
+        public string Description { get; set; }
+
+        public static UserModel Create()
+        {
+            return new UserModel() { Username = "", Email = "", Password = "", DateOfBirth = null, Description = "" };
+        }
+
+        public UserModel Clone()
+        {
+            return (UserModel) this.MemberwiseClone(); 
+        }
+    }
+}