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

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

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