public OpenApiOrganizationTranslatorTests() { SetupTypesCacheMock <PhoneNumberType>(typeof(PhoneNumberTypeEnum)); SetupTypesCacheMock <ServiceChargeType>(typeof(ServiceChargeTypeEnum)); SetupTypesCacheMock <AddressCharacter>(typeof(AddressCharacterEnum)); SetupTypesCacheMock <AddressType>(typeof(AddressTypeEnum)); SetupTypesCacheMock <OrganizationType>(typeof(OrganizationTypeEnum)); SetupTypesCacheMock <NameType>(typeof(NameTypeEnum)); SetupTypesCacheMock <ProvisionType>(typeof(ProvisionTypeEnum)); translators = new List <object>() { new OpenApiOrganizationTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OrganizationTypeStringTranslator(ResolveManager, TranslationPrimitives), new OpenApiOrganizationNameTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiOrganizationDisplayNameTypeTranslator(ResolveManager, TranslationPrimitives, CacheManager), new NameTypeCodeTranslator(ResolveManager, TranslationPrimitives), new PublishingStatusTypeTranslator(ResolveManager, TranslationPrimitives), new OpenApiOrganizationDescriptionTranslator(ResolveManager, TranslationPrimitives, CacheManager), new DescriptionTypeCodeTranslator(ResolveManager, TranslationPrimitives), new ServiceChargeTypeCodeTranslator(ResolveManager, TranslationPrimitives), new OpenApiOrganizationWebPageTranslator(ResolveManager, TranslationPrimitives, CacheManager), new WebPageTypeCodeTranslator(ResolveManager, TranslationPrimitives), new OpenApiOrganizationAddressTranslator(ResolveManager, TranslationPrimitives, CacheManager), new AddressTypeCodeTranslator(ResolveManager, TranslationPrimitives), new OpenApiStreetAddressTranslator(ResolveManager, TranslationPrimitives, CacheManager), new CountryCodeTranslator(ResolveManager, TranslationPrimitives), new DataAccess.Translators.OpenApi.Organizations.OpenApiOrganizationServiceTranslator(ResolveManager, TranslationPrimitives), new ProvisionTypeCodeTranslator(ResolveManager, TranslationPrimitives), new OpenApiOrganizationInTranslator(ResolveManager, TranslationPrimitives, CacheManager), new LanguageCodeTranslator(ResolveManager, TranslationPrimitives), new MunicipalityCodeTranslator(ResolveManager, TranslationPrimitives), new OpenApiBusinessTranslator(ResolveManager, TranslationPrimitives), new OpenApiWebPageTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiAddressInTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiPostalCodeTranslator(ResolveManager, TranslationPrimitives), new OpenApiServiceChannelAttachmentTranslator(ResolveManager, TranslationPrimitives), new PhoneNumberTypeCodeTranslator(ResolveManager, TranslationPrimitives), new OpenApiOrganizationPhoneTranslator(ResolveManager, TranslationPrimitives, CacheManager), new EmailTranslator(ResolveManager, TranslationPrimitives), new OrganizationEmailDataTranslator(ResolveManager, TranslationPrimitives), new OpenApiOrganizationEmailTranslator(ResolveManager, TranslationPrimitives), new OpenApiOrganizationEmailEmailTranslator(ResolveManager, TranslationPrimitives), new OpenApiEmailItemTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiAddressDescriptionTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiEmailTranslator(ResolveManager, TranslationPrimitives, CacheManager), new PhoneTranslator(ResolveManager, TranslationPrimitives, CacheManager.TypesCache), new OpenApiPhoneTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiOrganizationAddressWithCoordinatesTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiMunicipalityTranslator(ResolveManager, TranslationPrimitives), new OpenApiMunicipalityNameTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiDialCodeTranslator(ResolveManager, TranslationPrimitives), new OpenApiWebPageWithOrderNumberTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiPostalCodeNameTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiOrganizationLanguageAvailabilityTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiAddressTranslator(ResolveManager, TranslationPrimitives, CacheManager.TypesCache), new OpenApiPostOfficeBoxNameTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiAddressPostOfficeBoxTranslator(ResolveManager, TranslationPrimitives), new OpenApiAddressStreetTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiProducerOrganizationServiceTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiServiceItemTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiStreetInTranslator(ResolveManager, TranslationPrimitives), new OpenApiPostOfficeBoxTranslator(ResolveManager, TranslationPrimitives), new OpenApiAddressForeignTranslator(ResolveManager, TranslationPrimitives), new OpenApiAddressForeignTextNameTranslator(ResolveManager, TranslationPrimitives, CacheManager), new OpenApiPostOfficeBoxInTranslator(ResolveManager, TranslationPrimitives), new OpenApiStreetWithCoordinatesTranslator(ResolveManager, TranslationPrimitives, CacheManager.TypesCache) }; fiId = LanguageCache.Get(LanguageCode.fi.ToString()); svId = LanguageCache.Get(LanguageCode.sv.ToString()); }