Beispiel #1
0
        public void AnonNLincsPostCodeIsRecognised()
        {
            var pcode = "DN00 000";
            var input = new PostCode(pcode);

            Assert.That(input.Value,
                        Is.EqualTo(pcode));

            var actual = input.IsNorthlincsAnonymous();

            Assert.That(actual,
                        Is.True);
        }
Beispiel #2
0
        /// <summary>
        ///     Is Northlincs Anonymous post code
        /// </summary>
        /// <param name="postcode">the postcode to test</param>
        /// <returns>true if the post code is what we internally use as anonymous</returns>
        /// <remarks>This is a fudge that allows us to log anonymous jobs across the board</remarks>
        public static bool IsNorthlincsAnonymousPostcode(this string postcode)
        {
            var pc = new PostCode(postcode);

            return(pc.IsNorthlincsAnonymous());
        }
Beispiel #3
0
 /// <summary>
 ///     Is Northlincs Anonymous post code
 /// </summary>
 /// <param name="postcode">the postcode to test</param>
 /// <returns>true if the post code is what we internally use as anonymous</returns>
 /// <remarks>This is a fudge that allows us to log anonymous jobs across the board</remarks>
 public static bool IsNorthlincsAnonymousPostcode(this PostCode postcode) =>
 postcode.IsNorthlincsAnonymous();