public void IsValidReturnsFalseWithIncorrectValueTypeTest()
        {
            var sut = new ContentTypeAttribute();

            var actual = sut.IsValid(Guid.NewGuid());

            actual.Should().BeFalse();
        }
        public void IsValidReturnsFalseWithNullValueTest()
        {
            var sut = new ContentTypeAttribute();

            var actual = sut.IsValid(null);

            actual.Should().BeFalse();
        }
        public void IsValidReturnsExpectedValueTest(string contentType, bool expected)
        {
            var file = Substitute.For <IFormFile>();

            file.ContentType.Returns(contentType);

            var sut = new ContentTypeAttribute();

            var actual = sut.IsValid(file);

            actual.Should().Be(expected);
        }