Example #1
0
        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;
        }
        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;
        }