public static bool IsWomanByBornNumber(this string value) { return(BornNumberHelper.IsWoman(value)); }
public static bool IsValidBornNumber(this string value) { return(BornNumberHelper.IsValidBornNumber(value)); }
public void BornNumberIsWomanWithWomanReturnsTrue() { const string bornNumber = "895617/1234"; Assert.AreEqual(true, BornNumberHelper.IsWoman(bornNumber)); }
public void BornNumberIsWomanThrowsWithInvalidNumber() { const string bornNumber = "asdasdsdfg"; Assert.Throws <ArgumentException>(() => BornNumberHelper.IsWoman(bornNumber)); }
public void BornNumberIsWomanWithManReturnsFalse() { const string bornNumber = "890617/1234"; Assert.AreEqual(false, BornNumberHelper.IsWoman(bornNumber)); }
public void InvalidBornNumberIsInvalid() { const string bornNumber = "890617/1234"; Assert.AreEqual(false, BornNumberHelper.IsValidBornNumber(bornNumber)); }
public void OldBornNumberIsValid() { const string bornNumber = "490808/001"; Assert.AreEqual(true, BornNumberHelper.IsValidBornNumber(bornNumber)); }
public void ValidBornNumberDateOnlyIsValid() { const string bornNumber = "890603/0000"; Assert.AreEqual(true, BornNumberHelper.IsValidBornNumber(bornNumber)); }
public bool BornNumbersAreValid(string bornNumber) { return(BornNumberHelper.IsValidBornNumber(bornNumber)); }