public void StaffNameRule03PassesEmptyStaffNamesWhenNotRequired() { var model = new SupplementaryDataModel { ReferenceType = "Other", StaffName = null }; var rule = new StaffNameRule03(); Assert.True(rule.Execute(model)); }
public void StaffNameRule03CatchesNotRequiredStaffName() { var model = new SupplementaryDataModel { ReferenceType = "Other", StaffName = "Mr Bob" }; var rule = new StaffNameRule03(); Assert.False(rule.Execute(model)); }