public void CanIdentifyValidCreditorReferences(string creditorReference) { Assert.True(CreditorReference.IsValid(creditorReference)); var rf = CreditorReference.Parse(creditorReference); Assert.True(rf != null); }
public void CanGenerateValidCreditorReferenceUsingInput(string reference, string expectedValue) { var creditorReference = CreditorReference.Create(reference); Assert.True(CreditorReference.IsValid(creditorReference.ElectronicFormat)); Assert.Equal(expectedValue, creditorReference.ElectronicFormat); }
public void CanIdentifyInvalidCreditorReferences(string creditorReference) { Assert.False(CreditorReference.IsValid(creditorReference)); Assert.Throws <FormatException>(() => CreditorReference.Parse(creditorReference)); }