Example #1
0
 public static void Create_ThrowsArgumentNullException_ForNull(
     string institutionCode,
     string countryCode,
     string locationCode,
     string branchCode)
 => Assert.Throws <ArgumentNullException>(
     () => Bic.Create(institutionCode, countryCode, locationCode, branchCode));
Example #2
0
 public static void Create_DoesNotThrowArgumentException_ForValidInputs()
 {
     Bic.Create("ABCD", "BE", "BB", String.Empty);
     Bic.Create("ABCD", "BE", "BB", "XXX");
 }
Example #3
0
 public static void Create_ThrowsArgumentException_ForInvalidBranchCodeLength(string value)
 => Assert.Throws <ArgumentException>(() => Bic.Create("ABCD", "BE", "BB", value));
Example #4
0
 public static void Create_ThrowsArgumentException_ForInvalidInstitutionCodeLength(string value)
 => Assert.Throws <ArgumentException>(() => Bic.Create(value, "BE", "BB", "XXX"));