public void SalaryPrefixInBodyTextWithSpacesInTheNumbersIsParsed()
        {
            var parseThis = new HtmlDocument();

            parseThis.LoadHtml(Properties.Resources.SalaryInBodyText1);

            var parser = new TalentLinkSalaryParser();
            var result = parser.ParseSalaryFromHtml(parseThis);

            Assert.AreEqual(38984, result.MinimumSalary);
            Assert.AreEqual(43022, result.MaximumSalary);
        }
        public void SalaryInBodyTextFollowedByPerAnnumIsParsed()
        {
            var parseThis = new HtmlDocument();

            parseThis.LoadHtml(Properties.Resources.SalaryInBodyText2);

            var parser = new TalentLinkSalaryParser();
            var result = parser.ParseSalaryFromHtml(parseThis);

            Assert.AreEqual(16692, result.MinimumSalary);
            Assert.AreEqual(17808, result.MaximumSalary);
        }
        public void SalaryPrefixInBodyTextWithNoNumbersIsParsedAsTextOnly()
        {
            var parseThis = new HtmlDocument();

            parseThis.LoadHtml(Properties.Resources.SalaryInBodyText4);

            var parser = new TalentLinkSalaryParser();
            var result = parser.ParseSalaryFromHtml(parseThis);

            Assert.AreEqual("Dependant on experience, knowledge and qualifications", result.SalaryRange);
            Assert.AreEqual(null, result.MinimumSalary);
            Assert.AreEqual(null, result.MaximumSalary);
        }
        public void SalaryPrefixInBodyTextWithNoNumbersButNumbersWithinTheSameParentElementIsParsedAsTextOnly()
        {
            var parseThis = new HtmlDocument();

            parseThis.LoadHtml(Properties.Resources.SalaryInBodyText3);

            var parser = new TalentLinkSalaryParser();
            var result = parser.ParseSalaryFromHtml(parseThis);

            Assert.AreEqual("To be negotiated", result.SalaryRange);
            Assert.AreEqual(null, result.MinimumSalary);
            Assert.AreEqual(null, result.MaximumSalary);
        }