private CreateParentModel MakeParentEnrollmentInfoModel(bool hasSameAddress) { var model = new CreateParentModel { FirstName = "Mari", LastName = "Chavez", RelationshipToStudent = RelationTypeEnum.Mother, Sex = SexTypeEnum.Female, MakeThisPrimaryContact = true, TelephoneNumber = "555-5555", EmailAddress = "*****@*****.**", SameAddressAsStudent = hasSameAddress }; if (ParentDoesNotLiveWithStudent(hasSameAddress)) { model.City = "Durham"; model.State = StateAbbreviationTypeEnum.NC; model.PostalCode = "70131"; model.Address = "1 Boak St"; model.Address2 = "1st flr"; } return model; }
private void SetUp() { _mapper = new CreateStudentModelToStudentMapper( new StudentHomeAddressMapper(), new StudentHomeLanguageMapper(), new CreateParentModelToStudentParentAssociationMapper(new CreateParentModelToParentMapper(), new CreateParentModelToParentAddressMapper())); _createStudentModel.StudentUsi = 10001; _createStudentModel.FirstName = "John"; _createStudentModel.LastName = "Doe"; _createStudentModel.Sex = SexTypeEnum.Male; _createStudentModel.BirthDate = new DateTime(2001, 1, 1); _createStudentModel.HispanicLatinoEthnicity = false; _createStudentModel.Race = RaceTypeEnum.AmericanIndianAlaskanNative; _createStudentModel.Address = "1060 W Addison St"; _createStudentModel.Address2 = "33"; _createStudentModel.City = "London"; _createStudentModel.HomeLanguage = LanguageDescriptorEnum.English; _createStudentModel.PostalCode = "60657"; _createStudentModel.State = StateAbbreviationTypeEnum.CA; _createStudentModel.AddSecondParent = false; _createParentEnrollmentInfoModel = new CreateParentModel { FirstName = "Jenny", LastName = "Doe", RelationshipToStudent = RelationTypeEnum.Grandmother, Sex = SexTypeEnum.Female, MakeThisPrimaryContact = true, TelephoneNumber = "555-0221", EmailAddress = "*****@*****.**", SameAddressAsStudent = false, City = "Austin", State = StateAbbreviationTypeEnum.TX, PostalCode = "70101", Address = "1 Oak St", Address2 = "1A" }; _createStudentModel.FirstParent = _createParentEnrollmentInfoModel; }