Exemplo n.º 1
0
        public void Should_have_validation_error_when_privacy_is_empty()
        {
            var command = Fixture.Build <UpdateSite>().With(x => x.Privacy, string.Empty).Create();

            var sut = new UpdateSiteValidator();

            sut.ShouldHaveValidationErrorFor(x => x.Privacy, command);
        }
Exemplo n.º 2
0
        public void Should_have_validation_error_when_language_is_too_long()
        {
            var command = Fixture.Build <UpdateSite>().With(x => x.Language, new string('*', 11)).Create();

            var sut = new UpdateSiteValidator();

            sut.ShouldHaveValidationErrorFor(x => x.Language, command);
        }