public void BicCodesShouldPass(string bicCode) { // Arrange Result <BicCode> myBicCode; // Act myBicCode = BicCode.Create(bicCode); // Assert myBicCode.IsSuccess.Should().BeTrue(); }
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)); }