59
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
1 using System;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
2 using System.Collections.Generic;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
3 using SilverlightValidation.Models;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
4
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
5 namespace SilverlightValidation.Data
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
6 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
7 public class Factory
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
8 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
9 public static IList<UserModel> CreateUserModels()
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
10 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
11 return new List<UserModel>(5)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
12 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
13 new UserModel() { Username = "StevenH", Password = "Password1*", Email = "steven@hotmail.com", DateOfBirth = new DateTime(1977, 09, 01), Description = ""},
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
14 new UserModel() { Username = "RichardJ", Password = "&12N456a", Email = "dicky@gmail.com", DateOfBirth = new DateTime(1983, 03, 13), Description = "Rebel"},
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
15 new UserModel() { Username = "BobbyP", Password = "p@a33Word", Email = "bob@yahoo.co.uk", DateOfBirth = new DateTime(1992, 08, 30), Description = ""},
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
16 new UserModel() { Username = "DavidM", Password = "][poIu789*", Email = "daveyboy@marsh.com", DateOfBirth = new DateTime(1965, 06, 21), Description = "Renegade"},
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
17 new UserModel() { Username = "JessieJ", Password = "';lkJh567", Email = "jj@apple.co.uk", DateOfBirth = new DateTime(1990, 10, 15), Description = ""}
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
18 };
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
19 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
20 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
21 }
|