public void Init() { _profile = new AdminManagementMappingProfile(); _configuration = new MapperConfiguration(cfg => cfg.AddProfile(_profile)); _mapper = _configuration.CreateMapper(); _configuration.AssertConfigurationIsValid(); _addresses = new List <EdFiEducationOrganizationAddress> { new EdFiEducationOrganizationAddress(AddressTypeDescriptor, stateAbbreviationDescriptor: StateAbbreviationDescriptor, apartmentRoomSuiteNumber: ApartmentRoomSuiteNumber, city: City, postalCode: PostalCode, streetNumberName: StreetNumberName) }; _gradeLevels = new List <EdFiSchoolGradeLevel> { new EdFiSchoolGradeLevel(GradeLevelDescriptor) }; _edOrgCategories = new List <EdFiEducationOrganizationCategory>(); _leaReference = new EdFiLocalEducationAgencyReference(LeaId); var postSecondaryInstitutionReference = new EdFiPostSecondaryInstitutionReference(PsiId); var tpdmExtension = new TpdmSchoolExtension(AccreditationStatusDescriptor, FederalLocaleCodeDescriptor, ImprovingSchool, postSecondaryInstitutionReference); _schoolExtensions = new SchoolExtensions(tpdmExtension); _stateEducationAgencyReference = new EdFiStateEducationAgencyReference(StateEducationAgencyId); }
public void Should_have_valid_configuration() { // Arrange var profile = new AdminManagementMappingProfile(); var configuration = new MapperConfiguration(cfg => cfg.AddProfile(profile)); // Assert configuration.AssertConfigurationIsValid(); }
public void Init() { _profile = new AdminManagementMappingProfile(); _configuration = new MapperConfiguration(cfg => cfg.AddProfile(_profile)); _mapper = _configuration.CreateMapper(); _configuration.AssertConfigurationIsValid(); _addresses = new List <EdFiEducationOrganizationAddress> { new EdFiEducationOrganizationAddress(AddressTypeDescriptor, stateAbbreviationDescriptor: StateAbbreviationDescriptor, apartmentRoomSuiteNumber: ApartmentRoomSuiteNumber, city: City, postalCode: PostalCode, streetNumberName: StreetNumberName) }; _gradeLevels = new List <EdFiSchoolGradeLevel> { new EdFiSchoolGradeLevel(GradeLevelDescriptor) }; _edOrgCategories = new List <EdFiEducationOrganizationCategory>(); _leaReference = new EdFiLocalEducationAgencyReference(LeaId); _stateEducationAgencyReference = new EdFiStateEducationAgencyReference(StateEducationAgencyId); }
public void Init() { _profile = new AdminManagementMappingProfile(); _configuration = new MapperConfiguration(cfg => cfg.AddProfile(_profile)); _mapper = _configuration.CreateMapper(); _connectionInformation = new OdsApiConnectionInformation("Ods Instance", ApiMode.Sandbox) { ApiServerUrl = "http://server" }; _school = new School { Id = SchoolId, Name = SchoolName, StreetNumberName = "Test street", City = "Austin", State = "TX", ZipCode = "98989", GradeLevels = new List <string> { "Kinder" } }; }