Пример #1
0
        public void Given_DefaultItem_When_Validate_Then_ThreeErrorMessages()
        {
            // Arrange
            var builder = new RegisterHolidayRequestInputDtoBuilder();
            var input   = builder
                          .Build();
            var sut = new RegisterHolidayRequestInputDtoValidator(null, null);

            // Act
            var actual = sut.Validate(input);

            // Assert
            Assert.Equal(3, actual.Errors.Count);
        }
Пример #2
0
        public void Given_DefaultItem_When_Validate_Then_IsValidFalse()
        {
            // Arrange
            var builder = new RegisterHolidayRequestInputDtoBuilder();
            var input   = builder
                          .Build();
            var sut = new RegisterHolidayRequestInputDtoValidator(null, null);

            // Act
            var actual = sut.Validate(input);

            // Assert
            Assert.False(actual.IsValid);
        }