예제 #1
0
            public void Given_country_when_getting_iban_builder_it_should_return_instance()
            {
                var country = new IbanCountry("XX");

                // Act
                IbanBuilder actual = country.GetIbanBuilder();

                // Assert
                actual.Should().NotBeNull();
            }
예제 #2
0
            public void When_getting_builder_with_countryCode_it_should_configure_builder(string countryCode)
            {
                IBankAccountBuilder builder = new IbanBuilder();

                // Act
                builder.WithCountry(countryCode, IbanRegistry.Default);

                // Assert
                string iban = builder.Build();

                iban.Should().StartWith(countryCode);
            }