示例#1
0
        public void CanIdentifyValidCreditorReferences(string creditorReference)
        {
            Assert.True(CreditorReference.IsValid(creditorReference));
            var rf = CreditorReference.Parse(creditorReference);

            Assert.True(rf != null);
        }
示例#2
0
        public void CanGenerateValidCreditorReferenceUsingInput(string reference, string expectedValue)
        {
            var creditorReference = CreditorReference.Create(reference);

            Assert.True(CreditorReference.IsValid(creditorReference.ElectronicFormat));
            Assert.Equal(expectedValue, creditorReference.ElectronicFormat);
        }
示例#3
0
 public void CanIdentifyInvalidCreditorReferences(string creditorReference)
 {
     Assert.False(CreditorReference.IsValid(creditorReference));
     Assert.Throws <FormatException>(() => CreditorReference.Parse(creditorReference));
 }