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

LoadEducation() private static method

private static LoadEducation ( ) : void
return void
		private static void LoadEducation()
		{
			foreach (var u in _users)
			{
				EducationRepository.Add(new Education
				{
					EducationTypeId = 1,
					UserId = u.UserId,
					SchoolName = "Grade School",
					City = "City",
					State = "State",
					Country = "Country",
					YearAttended = DateTime.Now.AddYears(-20),
					YearGraduated = DateTime.Now.AddYears(-14),
					Course = string.Empty,
					CreatedBy = u.UserId,
					CreatedDate = DateTime.Now,
					ModifiedBy = u.UserId,
					ModifiedDate = DateTime.Now
				});

				EducationRepository.Add(new Education
				{
					EducationTypeId = 2,
					UserId = u.UserId,
					SchoolName = "High School",
					City = "City",
					State = "State",
					Country = "Country",
					YearAttended = DateTime.Now.AddYears(-14),
					YearGraduated = DateTime.Now.AddYears(-8),
					Course = string.Empty,
					CreatedBy = u.UserId,
					CreatedDate = DateTime.Now,
					ModifiedBy = u.UserId,
					ModifiedDate = DateTime.Now
				});

				EducationRepository.Add(new Education
				{
					EducationTypeId = 3,
					UserId = u.UserId,
					SchoolName = "College Education",
					City = "City",
					State = "State",
					Country = "Country",
					YearAttended = DateTime.Now.AddYears(-8),
					YearGraduated = DateTime.Now.AddYears(-4),
					Course = "BS Computer Science",
					CreatedBy = u.UserId,
					CreatedDate = DateTime.Now,
					ModifiedBy = u.UserId,
					ModifiedDate = DateTime.Now
				});
			}

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