public void MustNotHaveInvalidZip(string invalidZip) { // Then Assert.Throws <DomainException>(() => MemberAddressBuilder.New().WithZip(invalidZip).Build()) .WithMessage(MemberAddressValidation.ZipIsInvalid); }
public MemberAddressTest() { _memberAddress = MemberAddressBuilder.New().Build(); }