Пример #1
0
        public void Validate_Test()
        {
            //Given
            var validator = new NotNull();
            //When
            var result = validator.Validate(new { }, 0, new API.Models.FieldConfig());

            //Then
            result.IsValid.Should().BeTrue();
        }
Пример #2
0
        public void Validate_WhenObjectIsNull_ReturnsFalse()
        {
            //Given
            var validator = new NotNull();
            //When
            var result = validator.Validate(null, 0, new API.Models.FieldConfig());

            //Then
            result.IsValid.Should().BeFalse();
        }