public void GivenCreateFilterModel_WhenHavingNameWithMoreThan50Characters_ThenResultShouldBeInvalid() { var model = CreateFilterModelFactory.WithNameHavingMoreThan50Characters(); var validator = new CreateFilterModelValidator(); var result = validator.Validate(model); result.IsValid.Should().BeFalse(); }
public void GivenCreateFilterModel_WhenHavingValidName_ThenResultShouldBeValid() { var model = CreateFilterModelFactory.Default(); var validator = new CreateFilterModelValidator(); var result = validator.Validate(model); result.IsValid.Should().BeTrue(); }