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

            // Assert
            checkDigit.Should().Be(expectedValue);
        }
コード例 #2
0
        public void Province_WhenValidNumber_ReturnsExpectedValue(string number, BelgianProvince expectedValue)
        {
            // Arrange
            var practitionerNumber = new BelgianHealthcarePractitionerLicenseNumber(number);
            // Act
            var province = practitionerNumber.Province();

            // Assert
            province.Should().Be(expectedValue);
        }
コード例 #3
0
        public void QualificationCode_WhenValidNumber_ReturnsExpectedValue(string number, string expectedValue)
        {
            // Arrange
            var practitionerNumber = new BelgianHealthcarePractitionerLicenseNumber(number);
            // Act
            var qualificationCode = practitionerNumber.QualificationCode();

            // Assert
            qualificationCode.Should().Be(expectedValue);
        }
コード例 #4
0
        public void PractitionerUniqueIdentifier_WhenValidNumber_ReturnsExpectedValue(string number, int expectedValue)
        {
            // Arrange
            var practitionerNumber = new BelgianHealthcarePractitionerLicenseNumber(number);
            // Act
            var practitionerUniqueIdentifier = practitionerNumber.PractitionerUniqueIdentifier();

            // Assert
            practitionerUniqueIdentifier.Should().Be(expectedValue);
        }
コード例 #5
0
        public void CheckDigit_WhenValidNumber_ReturnsExpectedValue(string number, int expectedValue)
        {
            // Arrange
            var practitionerNumber = new BelgianHealthcarePractitionerLicenseNumber(number);
            // Act
            var checkDigit = practitionerNumber.CheckDigit();

            // Assert
            checkDigit.Should().Be(expectedValue);
        }