예제 #1
0
        public void BicCodesShouldPass(string bicCode)
        {
            // Arrange
            Result <BicCode> myBicCode;

            // Act
            myBicCode = BicCode.Create(bicCode);
            // Assert
            myBicCode.IsSuccess.Should().BeTrue();
        }
예제 #2
0
        public Result <Bank> SetBic(string value)
        {
            var bicCode = BicCode.Create(value);

            if (bicCode.IsFailure)
            {
                return(Result.Failure <Bank>(bicCode.Error));
            }
            _bicCode = bicCode.Value;
            return(Result.Success(this));
        }