public void Validate_InvalidResult_HasAllowedExtensionsValidationContext(string[] allowedExtensions)
        {
            // Arrange
            var validator = new ImageTypeValidator(allowedExtensions);

            // Act
            var result = validator.Validate("", null);

            // Assert
            var expected = string.Join(", ", allowedExtensions);

            Assert.AreEqual(expected, result.AllowedExtensions);
        }
        public void Validate_ValidFile_ReturnTrue(
            ImageTypeTestDataDto dto)
        {
            // Act
            var result = _validator.Validate(dto.File.FileName, dto.Stream);

            // Assert
            Assert.True(result.IsValid);

            // Dispose
            dto.Stream?.Dispose();
        }