private void VatValidator_Check_Validate_Result(string vatNumber) { var vatValidator = new VatValidator(); vatValidator.Validate(vatNumber); Assert.Fail("No exception"); }
private void VatValidator_Check_Validate_Result(string vatNumber, bool expectedResult) { var vatValidator = new VatValidator(); var result = vatValidator.Validate(vatNumber); Assert.AreEqual(result, expectedResult); }
public void SetupTestRuns() { VatValidator.Activate("*****@*****.**", "02317-7C8A2-98981-00007-DB1B8"); }
public void WhenBulgarianVatHaveCharactersAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("bgu56875695")); }
public void WhenBelgianVatIsTooShortAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("be0568756")); }
public void WhenHungarianVatIsCorrect() { Assert.DoesNotThrow(() => VatValidator.ValidateVatAsync("HU12345678")); }
public void WhenHungarianVatHasInvalidCharacters() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("HU1A3548972")); }
public void WhenGreekVatIsCorrect() { Assert.DoesNotThrow(() => VatValidator.ValidateVatAsync("EL012345678")); }
public void WhenFinnishVatIsTooLongAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("fi0568756956656565")); }
public void WhenFinninshVatHaveCharactersAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("fiu56875695")); }
public void WhenEstonianVatNumberIsCorrectAsync() { Assert.DoesNotThrow(() => VatValidator.ValidateVatAsync("ee056875690")); }
public void WhenAustrianVatDoesNotHaveUCharacterAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("at056875695")); }
public void WhenDenmarkVatNumberIsCorrectAsync() { Assert.DoesNotThrow(() => VatValidator.ValidateVatAsync("dk05687569")); }
public void WhenDenmarkVatIsTooShortAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("dk0568756")); }
public void WhenDenmarkVatHaveCharactersAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("dku56875695")); }
public void WhenGreekVatIsTooLong() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("EL0123548972")); }
public void WhenGreekVatHasInvalidCharacters() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("EL01A3548972")); }
public void WhenFinnishVatNumberIsCorrectAsync() { Assert.DoesNotThrow(() => VatValidator.ValidateVatAsync("fi05687569")); }
public void WhenHungarianVatIsTooLong() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("HU123548972")); }
public void WhenFrenchVatHaveInvalidCharactersAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("FROI023587691")); }
public void WhenAustrianVatIsTooLongAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("atu568756956")); }
public void WhenFrenchVatIsTooLongAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("FRAB2586978612")); }
public void WhenAustrianVatNumberIsCorrectAsync() { Assert.DoesNotThrow(() => VatValidator.ValidateVatAsync("atu56875695")); }
public void WhenFrenchVatIsTooShortAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("FRAB02536897")); }
public void WhenBelgianVatNumberIsCorrectWith10DigitsAsync() { Assert.DoesNotThrow(() => VatValidator.ValidateVatAsync("be0568756958")); }
public void WhenFrenchVatHasCharactersAtWrongPositionAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("FR25AV2368971")); }
public void WhenBulgarianVatIsTooLongAsync() { Assert.Throws <ArgumentException>(() => VatValidator.ValidateVatAsync("bg056875695665")); }
public void WhenFrenchVatHasOnlyOneLetterAsync() { Assert.DoesNotThrow(() => VatValidator.ValidateVatAsync("FR0F253684911")); }
public void WhenBulgarianVatNumberIsCorrectWith9DigitsAsync() { Assert.DoesNotThrow(() => VatValidator.ValidateVatAsync("bg056875695")); }
public void WhenFrenchVatHasTwoValidLettersAsync() { Assert.DoesNotThrow(() => VatValidator.ValidateVatAsync("FRFF253684911")); }