implementado hasta el ultimo paso antes de hacer la tercera notificacion
This commit is contained in:
35
Aspnet/Builder/GaranteBuilder.cs
Normal file
35
Aspnet/Builder/GaranteBuilder.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using Entidades;
|
||||
|
||||
namespace AlquilaFacil.Builder;
|
||||
|
||||
public class GaranteBuilder : Builder<Garante> {
|
||||
public GaranteBuilder SetNombre(string Nombre) {
|
||||
data.Nombre = Nombre;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GaranteBuilder SetApellido(string Apellido) {
|
||||
data.Apellido = Apellido;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GaranteBuilder SetDni(long Dni) {
|
||||
data.Dni = Dni;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GaranteBuilder SetDomicilio(string Domicilio) {
|
||||
data.Domicilio = Domicilio;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GaranteBuilder SetCelular(string Celular) {
|
||||
data.Celular = Celular;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GaranteBuilder SetDomicilioLaboral(string Domiciliolaboral) {
|
||||
data.Domiciliolaboral = Domiciliolaboral;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
45
Aspnet/Builder/PrecontratoBuilder.cs
Normal file
45
Aspnet/Builder/PrecontratoBuilder.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
namespace AlquilaFacil.Builder;
|
||||
|
||||
using System;
|
||||
using Entidades;
|
||||
public class PrecontratoBuilder : Builder<Contrato> {
|
||||
public PrecontratoBuilder SetHabilitado(){
|
||||
data.Habilitado = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PrecontratoBuilder SetInquilino(long dniInq) {
|
||||
data.Dniinquilino = dniInq;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PrecontratoBuilder SetPropietario(long dniProp) {
|
||||
data.Dnipropietario = dniProp;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PrecontratoBuilder SetPropiedad(int idprop) {
|
||||
data.Idpropiedad = idprop;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PrecontratoBuilder SetCantidadGarantes(int cantgarante) {
|
||||
data.Cantgarantemin = cantgarante;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PrecontratoBuilder SetIndiceActializacionInicial() {
|
||||
data.Indiceactualizacion = 0.000M;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PrecontratoBuilder SetMesesHastaAumento(int meses) {
|
||||
data.MesesHastaAumento = meses;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PrecontratoBuilder SetFecha(DateTime fechaprimernotificacion){
|
||||
data.Fechainicio = fechaprimernotificacion;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user