コード例 #1
0
        public LoteValidation(ILoteInfrastructure loteInfrastructure)
        {
            _loteInfrastructure = loteInfrastructure;

            RuleFor(x => x.Descripcion).NotNull().NotEmpty().WithMessage("Debe especificar una descripcion al lote.");
            RuleFor(x => x.Descripcion).Must(DescripcionDuplicada).WithMessage("La fecha desde debe ser mayor que la fecha actual.");
        }
コード例 #2
0
ファイル: Lote.cs プロジェクト: pdefilippis/ProductsOfList
 public Lote(ILoteInfrastructure loteInfrastructure, IArticuloInfrastructure articuloInfrastructure,
             IUsuarioInfrastructure usuarioInfrastructure,
             INotificacionesInfrastructure notificacionesInfrastructure)
 {
     _loteInfrastructure           = loteInfrastructure;
     _articuloInfrastructure       = articuloInfrastructure;
     _usuarioInfrastructure        = usuarioInfrastructure;
     _notificacionesInfrastructure = notificacionesInfrastructure;
 }