public void CreateGlobalError_SetsEmptyPath()
        {
            var testError = ValidationError.CreateGlobalError("any Message");

            testError.ErrorPath.Should().BeEmpty();
        }
        public void CreateGlobalError_ThrowsExceptionIfErrorMessageIsNull()
        {
            Action errorCreation = () => ValidationError.CreateGlobalError(null);

            errorCreation.Should().ThrowExactly <ArgumentNullException>().Which.ParamName.Should().Be("errorMessage");
        }
        public void CreateGlobalError_SetsErrorMessageCorrectly(string testErrorMessage)
        {
            var testError = ValidationError.CreateGlobalError(testErrorMessage);

            testError.ErrorMessage.Should().Be(testErrorMessage);
        }