Blog.Tools.ApplicationSetup.Program.LoadUsers C# (CSharp) Method

LoadUsers() private static method

private static LoadUsers ( ) : void
return void
		private static void LoadUsers()
		{
			UserRepository.Add(new User
			{
				FirstName = "Jason",
				LastName = "Magpantay",
				UserName = "jamaness",
				IdentityId = Guid.NewGuid().ToString(),
				EmailAddress = "[email protected]",
				BirthDate = DateTime.Now.AddYears(-25)
			});
			UserRepository.Add(new User
			{
				FirstName = "Jason",
				LastName = "Avel",
				UserName = "jaavness",
				IdentityId = Guid.NewGuid().ToString(),
				EmailAddress = "[email protected]",
				BirthDate = DateTime.Now.AddYears(-25)
			});
			UserRepository.Add(new User
			{
				FirstName = "Avel",
				LastName = "Magpantay",
				UserName = "avmaness",
				IdentityId = Guid.NewGuid().ToString(),
				EmailAddress = "[email protected]",
				BirthDate = DateTime.Now.AddYears(-25)
			});

			_users = UserRepository.Find(
					a => a.UserId > 0,
					b => b.OrderBy(c => c.UserId), null).ToList();

			AddConsoleMessage("Successfully added users...");
		}