public void Should_Valid_When_MaleOrFemailIsSaved() { var sut = PatientSex.Create("maLe"); Assert.Equal("male", sut.Value); var sut2 = PatientSex.Create("feMaLe"); Assert.Equal("female", sut2.Value); }
public void Should_ErrorValidation_When_UnwantedSexIsSaved() { Assert.Throws <FluentValidation.ValidationException>(() => PatientSex.Create("boom boom")); }