view 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 source

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(); 
        }
    }
}