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); }
/// <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()); }
/// <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();