示例#1
0
 public Lote(ILoteInfrastructure loteInfrastructure, IArticuloInfrastructure articuloInfrastructure,
             IUsuarioInfrastructure usuarioInfrastructure,
             INotificacionesInfrastructure notificacionesInfrastructure)
 {
     _loteInfrastructure           = loteInfrastructure;
     _articuloInfrastructure       = articuloInfrastructure;
     _usuarioInfrastructure        = usuarioInfrastructure;
     _notificacionesInfrastructure = notificacionesInfrastructure;
 }
示例#2
0
        public UsuarioValidation(IUsuarioInfrastructure usuarioInfrastructure)
        {
            _usuarioInfrastructure = usuarioInfrastructure;

            RuleFor(x => x.UserName).NotNull().NotEmpty().WithMessage("Se debe especificar un usuario.");
            RuleFor(x => x.Apellido).NotNull().NotEmpty().WithMessage("Se debe especificar el apellido.");
            RuleFor(x => x.Nombre).NotNull().NotEmpty().WithMessage("Se debe especificar el nombre.");
            RuleFor(x => x.Password).NotNull().NotEmpty().WithMessage("Se debe especificar una contraseña.");
            RuleFor(x => x.UserName).Must(UsuarioRepetido).WithMessage("Ya existe el usuario.");
        }
示例#3
0
 public Articulo(IArticuloInfrastructure articuloInfrastructure, IUsuarioInfrastructure usuarioInfrastructure)
 {
     _articuloInfrastructure = articuloInfrastructure;
     _usuarioInfrastructure  = usuarioInfrastructure;
 }
示例#4
0
 public Usuario(IUsuarioInfrastructure usuarioInfrastructure)
 {
     _usuarioInfrastructure = usuarioInfrastructure;
 }