コード例 #1
0
        public void ComputeCheckDigit_WhenValidNumber_ReturnsExpectedValue(string number, int expectedValue)
        {
            // Act
            var checkDigit = BelgianHealthFacilityLicenseNumber.ComputeCheckDigit(number);

            // Assert
            checkDigit.Should().Be(expectedValue);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 private static MedicalOffice CreateMedicalOffice(HealthFacilityState state)
 {
     return(new MedicalOffice(state.Identifier, state.Name, BelgianHealthFacilityLicenseNumber.CreateIfNotEmpty(state.LicenseNumber)));
 }