Ejemplo n.º 1
0
        public void CanMapMappedIndistry()
        {
            var industry = _industriesQuery.GetIndustryByUrlName("hr-recruitment");

            var jobAd = new JobAd
            {
                Description = { Industries = new[] { industry } },
            };

            var code = _mapper.Map(jobAd);

            Assert.AreEqual(1323, code);
        }
Ejemplo n.º 2
0
        public void TestGetIndustryByUrlName()
        {
            var industry = _industriesQuery.GetIndustries().First(i => i.UrlAliases.Count == 0);

            AssertAreEqual(industry, _industriesQuery.GetIndustryByUrlName(industry.UrlName));

            industry = _industriesQuery.GetIndustries().First(i => i.UrlAliases.Count > 0);
            AssertAreEqual(industry, _industriesQuery.GetIndustryByUrlName(industry.UrlName));
            foreach (var urlAlias in industry.UrlAliases)
            {
                AssertAreEqual(industry, _industriesQuery.GetIndustryByUrlName(urlAlias));
            }
        }
Ejemplo n.º 3
0
        public override object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
        {
            var industryUrlName = GetIndustryUrlName(bindingContext);

            return(industryUrlName != null
                ? _industriesQuery.GetIndustryByUrlName(industryUrlName)
                : null);
        }
Ejemplo n.º 4
0
        public static Industry GetIndustryByUrlSegment(this IIndustriesQuery industriesQuery, string segment, string suffix)
        {
            var industryUrlName = GetUrlName(segment, suffix);

            return(industryUrlName != null
                ? industriesQuery.GetIndustryByUrlName(industryUrlName)
                : null);
        }
Ejemplo n.º 5
0
        public void TestLongJob()
        {
            const string jobTitle = "AGEING DISABILITY AND HOME CARE (ADHC) / Aboriginal Service Coordinator - ATSI Identified Position / Central West NSW ( Job Ref: 000017LE)";
            var          employer = CreateEmployer();
            var          industry = _industriesQuery.GetIndustryByUrlName("healthcare-medical-pharmaceutical");
            var          location = GetLocation("Regional NSW (Blue Mountains & Central West)");
            var          jobAd    = CreateJobAd(employer, jobTitle, location, industry, GetIntegratorUserId());

            var url = GetJobUrl(jobAd.Id, jobTitle, location, industry);

            Get(url);
            AssertUrl(url);
        }
Ejemplo n.º 6
0
        private static IDictionary <string, Industry> CreateIndustryMap(IIndustriesQuery industriesQuery)
        {
            var industryMap = new[]
            {
                Tuple.Create("Accounting", "accounting"),
                Tuple.Create("Administration", "administration"),
                Tuple.Create("Records, Information and Archives", "administration"),
                Tuple.Create("Advert/Media/Comm/Ent & Design", "advertising-media-entertainment"),
                Tuple.Create("Automotive", "automotive"),
                Tuple.Create("Banking & Finance", "banking-financial-services"),
                Tuple.Create("Call Centre & Customer Service", "call-centre-customer-service"),
                Tuple.Create("Community & Sports", "community-sport"),
                Tuple.Create("Library and Information", "community-sport"),
                Tuple.Create("Construction & Architecture", "construction"),
                Tuple.Create("Consulting", "consulting-corporate-strategy"),
                Tuple.Create("Education & Training", "education-training"),
                Tuple.Create("Apprenticeships & Traineeships", "education-training"),
                Tuple.Create("Graduate", "education-training"),
                Tuple.Create("Volunteer", "education-training"),
                Tuple.Create("Engineering", "engineering"),
                Tuple.Create("Government, Defence, Emergency", "government-defence"),
                Tuple.Create("Healthcare & Medical", "healthcare-medical-pharmaceutical"),
                Tuple.Create("Hospitality, Tourism & Travel", "hospitality-tourism"),
                Tuple.Create("HR & Recruitment", "hr-recruitment"),
                Tuple.Create("I.T. & T", "it-telecommunications"),
                Tuple.Create("Insurance & Superannuation", "insurance-superannuation"),
                Tuple.Create("Legal", "legal"),
                Tuple.Create("Manufacturing/Operations", "manufacturing-operations"),
                Tuple.Create("Mining, Oil & Gas", "mining-oil-gas"),
                Tuple.Create("Other", "other"),
                Tuple.Create("Executive", "other"),
                Tuple.Create("Primary Industry", "primary-industry"),
                Tuple.Create("Real Estate & Property", "real-estate-property"),
                Tuple.Create("Retail & Fashion", "retail-consumer-products"),
                Tuple.Create("Sales", "sales-marketing"),
                Tuple.Create("Marketing", "sales-marketing"),
                Tuple.Create("Science", "science-technology"),
                Tuple.Create("Self Employment", "self-employment"),
                Tuple.Create("Trades & Services", "trades-services"),
                Tuple.Create("Transport, Shipping, Logistics", "transport-logistics"),
                Tuple.Create("Aviation", "transport-logistics"),
            };

            return(industryMap.ToDictionary(t => t.Item1, t => industriesQuery.GetIndustryByUrlName(t.Item2)));
        }
Ejemplo n.º 7
0
        public OccupationMapper(IIndustriesQuery industriesQuery)
        {
            var industryMapTemplate = new[]
            {
                Tuple.Create("accounting", 2211),                        //Accountants
                Tuple.Create("administration", 5619),                    //Other Clerical and Office Support Worker
                Tuple.Create("advertising-media-entertainment", 2251),   //Advertising and Marketing Professionals
                Tuple.Create("automotive", 3212),                        //Motor Mechanics
                Tuple.Create("banking-financial-services", 5521),        // Bank Workers
                Tuple.Create("call-centre-customer-service", 6393),      // Telemarketers
                Tuple.Create("community-sport", 4518),                   // Other Personal Service Workers
                Tuple.Create("construction", 1331),                      // Construction Managers
                Tuple.Create("consulting-corporate-strategy", 2247),     // Management and Organisation Analysts
                Tuple.Create("education-training", 1344),                // Other Education Managers
                Tuple.Create("engineering", 1332),                       // Engineering Managers
                Tuple.Create("government-defence", 4422),                // Security Officers and Guards
                Tuple.Create("healthcare-medical-pharmaceutical", 2513), // Generalist Medical Practitioners
                Tuple.Create("hospitality-tourism", 4516),               // Tourism and Travel Advisers
                Tuple.Create("hr-recruitment", 1323),                    // Human Resource Managers
                Tuple.Create("insurance-superannuation", 6112),          // Insurance Agents
                Tuple.Create("it-telecommunications", 3132),             // Telecommunications Technical Specialists
                Tuple.Create("legal", 2711),                             // Barristers
                Tuple.Create("manufacturing-operations", 8999),          // Other Miscellaneous Labourers
                Tuple.Create("mining-oil-gas", 2336),                    // Mining Engineers
                Tuple.Create("primary-industry", 8419),                  // Other Farm, Forestry and Garden Workers
                Tuple.Create("real-estate-property", 6121),              // Real Estate Sales Agents
                Tuple.Create("retail-consumer-products", 6219),          // Other Sales Assistants and Salespersons
                Tuple.Create("sales-marketing", 1311),                   // Advertising and Sales Managers
                Tuple.Create("science-technology", 3114),                // Science Technicians
                Tuple.Create("trades-services", 3411),                   // Electricians
                Tuple.Create("transport-logistics", 7331)                // Truck Drivers
            };

            _industryMap =
                industryMapTemplate.ToDictionary(t => industriesQuery.GetIndustryByUrlName(t.Item1), t => t.Item2);
        }
Ejemplo n.º 8
0
        private static IDictionary <MonsterIndustriesIdEnum, Industry> CreateIndustryMap(IIndustriesQuery industriesQuery)
        {
            var industryMap = new[]
            {
                Tuple.Create(MonsterIndustriesIdEnum.Accounting, "accounting"),
                Tuple.Create(MonsterIndustriesIdEnum.Administrative, "administration"),
                Tuple.Create(MonsterIndustriesIdEnum.Advertising, "advertising-media-entertainment"),
                Tuple.Create(MonsterIndustriesIdEnum.AerospaceDefense, "government-defence"),
                Tuple.Create(MonsterIndustriesIdEnum.Agriculture, "primary-industry"),
                Tuple.Create(MonsterIndustriesIdEnum.Architecture, "construction"),
                Tuple.Create(MonsterIndustriesIdEnum.AutomotiveMfg, "manufacturing-operations"),
                Tuple.Create(MonsterIndustriesIdEnum.AutomotiveServices, "automotive"),
                Tuple.Create(MonsterIndustriesIdEnum.Banking, "banking-financial-services"),
                Tuple.Create(MonsterIndustriesIdEnum.BiotechnologyPharmaceuticals, "healthcare-medical-pharmaceutical"),
                Tuple.Create(MonsterIndustriesIdEnum.BroadcastingMusicFilm, "advertising-media-entertainment"),
                Tuple.Create(MonsterIndustriesIdEnum.BusinessServices, "consulting-corporate-strategy"),
                Tuple.Create(MonsterIndustriesIdEnum.Chemicals, "manufacturing-operations"),
                Tuple.Create(MonsterIndustriesIdEnum.ComputerHardware, "it-telecommunications"),
                Tuple.Create(MonsterIndustriesIdEnum.ComputerSoftware, "it-telecommunications"),
                Tuple.Create(MonsterIndustriesIdEnum.ComputerServices, "it-telecommunications"),
                Tuple.Create(MonsterIndustriesIdEnum.ConstructionIndustrial, "construction"),
                Tuple.Create(MonsterIndustriesIdEnum.ConstructionResidential, "construction"),
                Tuple.Create(MonsterIndustriesIdEnum.Education, "education-training"),
                Tuple.Create(MonsterIndustriesIdEnum.ElectronicsMfg, "manufacturing-operations"),
                Tuple.Create(MonsterIndustriesIdEnum.EnergyUtilities, "primary-industry"),
                Tuple.Create(MonsterIndustriesIdEnum.Engineering, "engineering"),
                Tuple.Create(MonsterIndustriesIdEnum.EntertainmentVenues, "advertising-media-entertainment"),
                Tuple.Create(MonsterIndustriesIdEnum.FinancialServices, "banking-financial-services"),
                Tuple.Create(MonsterIndustriesIdEnum.FoodProduction, "primary-industry"),
                Tuple.Create(MonsterIndustriesIdEnum.GovernmentMilitary, "government-defence"),
                Tuple.Create(MonsterIndustriesIdEnum.GovernmentDefense, "government-defence"),
                Tuple.Create(MonsterIndustriesIdEnum.GovernmentNational, "government-defence"),
                Tuple.Create(MonsterIndustriesIdEnum.Grocery, "retail-consumer-products"),
                Tuple.Create(MonsterIndustriesIdEnum.Healthcare, "healthcare-medical-pharmaceutical"),
                Tuple.Create(MonsterIndustriesIdEnum.Hotels, "hospitality-tourism"),
                Tuple.Create(MonsterIndustriesIdEnum.Insurance, "insurance-superannuation"),
                Tuple.Create(MonsterIndustriesIdEnum.Internet, "it-telecommunications"),
                Tuple.Create(MonsterIndustriesIdEnum.Legal, "legal"),
                Tuple.Create(MonsterIndustriesIdEnum.ManagementCompanies, "administration"),
                Tuple.Create(MonsterIndustriesIdEnum.ManagementServices, "administration"),
                Tuple.Create(MonsterIndustriesIdEnum.Manufacturing, "manufacturing-operations"),
                Tuple.Create(MonsterIndustriesIdEnum.Marine, "hospitality-tourism"),
                Tuple.Create(MonsterIndustriesIdEnum.MedicalSupplies, "healthcare-medical-pharmaceutical"),
                Tuple.Create(MonsterIndustriesIdEnum.MetalsMinerals, "mining-oil-gas"),
                Tuple.Create(MonsterIndustriesIdEnum.Mortgage, "banking-financial-services"),
                Tuple.Create(MonsterIndustriesIdEnum.NonprofitOrganizations, "other"),
                Tuple.Create(MonsterIndustriesIdEnum.Nursing, "healthcare-medical-pharmaceutical"),
                Tuple.Create(MonsterIndustriesIdEnum.Other, "other"),
                Tuple.Create(MonsterIndustriesIdEnum.PerformingArts, "advertising-media-entertainment"),
                Tuple.Create(MonsterIndustriesIdEnum.PersonalServices, "other"),
                Tuple.Create(MonsterIndustriesIdEnum.PersonalCare, "trades-services"),
                Tuple.Create(MonsterIndustriesIdEnum.Printing, "advertising-media-entertainment"),
                Tuple.Create(MonsterIndustriesIdEnum.RealEstate, "real-estate-property"),
                Tuple.Create(MonsterIndustriesIdEnum.RentalServices, "trades-services"),
                Tuple.Create(MonsterIndustriesIdEnum.RepairServices, "trades-services"),
                Tuple.Create(MonsterIndustriesIdEnum.Restaurant, "hospitality-tourism"),
                Tuple.Create(MonsterIndustriesIdEnum.Retail, "retail-consumer-products"),
                Tuple.Create(MonsterIndustriesIdEnum.Security, "trades-services"),
                Tuple.Create(MonsterIndustriesIdEnum.SocialServices, "community-sport"),
                Tuple.Create(MonsterIndustriesIdEnum.SportsRecreation, "community-sport"),
                Tuple.Create(MonsterIndustriesIdEnum.EmploymentAgencies, "hr-recruitment"),
                Tuple.Create(MonsterIndustriesIdEnum.Telecommunications, "it-telecommunications"),
                Tuple.Create(MonsterIndustriesIdEnum.ClothingManufacturing, "manufacturing-operations"),
                Tuple.Create(MonsterIndustriesIdEnum.TradeContractors, "trades-services"),
                Tuple.Create(MonsterIndustriesIdEnum.TransportStorage, "transport-logistics"),
                Tuple.Create(MonsterIndustriesIdEnum.Travel, "hospitality-tourism"),
                Tuple.Create(MonsterIndustriesIdEnum.WasteManagement, "manufacturing-operations"),
                Tuple.Create(MonsterIndustriesIdEnum.Wholesale, "transport-logistics")
            };

            return(industryMap.ToDictionary(t => t.Item1, t => industriesQuery.GetIndustryByUrlName(t.Item2)));
        }