public void Parse_Should_Return_Correctly_Initialized_ValidationErrorCode(string code, int severity)
        {
            // Arrange

            // Act
            var validationErrorCode = ValidationErrorCode.Parse(code);

            // Assert
            validationErrorCode.Code.Should().Be(code);
            validationErrorCode.Severity.Should().Be(severity);
        }
        public void AsGenericResultOf_DifferentCode_Values_Should_Return_Correct_Result(string code, Type resultType, Type underlyingType)
        {
            // Arrange
            var errors = _fixture.Create <Dictionary <string, string[]> >();
            var validationErrorCode = ValidationErrorCode.Parse(code);

            // Act
            var result = validationErrorCode.AsGenericResultOf(underlyingType, errors);

            // Assert
            result.Should().BeOfType(resultType);
            (result as GeneralFail <int>) !.Errors.Should().BeSameAs(errors);
        }