public void ComputeCheckDigit_WhenValidNumber_ReturnsExpectedValue(string number, int expectedValue) { // Act var checkDigit = BelgianHealthFacilityLicenseNumber.ComputeCheckDigit(number); // Assert checkDigit.Should().Be(expectedValue); }
public void FacilityUniqueIdentifier_WhenValidNumber_ReturnsExpectedValue(string number, int expectedValue) { // Arrange var facilityNumber = new BelgianHealthFacilityLicenseNumber(number); // Act var facilityUniqueIdentifier = facilityNumber.FacilityUniqueIdentifier(); // Assert facilityUniqueIdentifier.Should().Be(expectedValue); }
public void CheckDigit_WhenValidNumber_ReturnsExpectedValue(string number, int expectedValue) { // Arrange var facilityNumber = new BelgianHealthFacilityLicenseNumber(number); // Act var checkDigit = facilityNumber.CheckDigit(); // Assert checkDigit.Should().Be(expectedValue); }
private static MedicalOffice CreateMedicalOffice(HealthFacilityState state) { return(new MedicalOffice(state.Identifier, state.Name, BelgianHealthFacilityLicenseNumber.CreateIfNotEmpty(state.LicenseNumber))); }