示例#1
0
        public void Shoud_not_have_error_if_name_greater_than_255()
        {
            #region Arrange
            var validator = new CreateVehiculCommandValidator();
            #endregion

            #region Act & Assert
            validator.ShouldNotHaveValidationErrorFor(vehicul => vehicul.Label, new string('*', 255));
            #endregion
        }
示例#2
0
        public void Shoud_not_have_error_if_vehiculId_is_specified()
        {
            #region Arrange
            var validator = new CreateVehiculCommandValidator();
            #endregion

            #region Act & Assert
            validator.ShouldNotHaveValidationErrorFor(vehicul => vehicul.VehiculId, Guid.NewGuid());
            #endregion
        }