public Lote(ILoteInfrastructure loteInfrastructure, IArticuloInfrastructure articuloInfrastructure, IUsuarioInfrastructure usuarioInfrastructure, INotificacionesInfrastructure notificacionesInfrastructure) { _loteInfrastructure = loteInfrastructure; _articuloInfrastructure = articuloInfrastructure; _usuarioInfrastructure = usuarioInfrastructure; _notificacionesInfrastructure = notificacionesInfrastructure; }
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."); }
public Articulo(IArticuloInfrastructure articuloInfrastructure, IUsuarioInfrastructure usuarioInfrastructure) { _articuloInfrastructure = articuloInfrastructure; _usuarioInfrastructure = usuarioInfrastructure; }
public Usuario(IUsuarioInfrastructure usuarioInfrastructure) { _usuarioInfrastructure = usuarioInfrastructure; }