public InsuranceManagementService( IInsuranceDomain InsuranceDomain, IInsuranceFormatInputOutput InsuranceFormatInputOutput, IInsuranceServiceResponse InsuranceServiceResponse, ISerializer Serializer ) { this.InsuranceDomain = InsuranceDomain; this.InsuranceFormatInputOutput = InsuranceFormatInputOutput; this.InsuranceServiceResponse = InsuranceServiceResponse; this.Serializer = Serializer; }
public void Init() { IInsuranceDomain InsuranceDomain = new InsuranceDomain(); ISerializer Serializer = new Serializer(); IInsuranceFormatInputOutput InsuranceFormatInputOutput = new InsuranceFormatInputOutput(InsuranceDomain, Serializer); IInsuranceServiceResponse InsuranceServiceResponse = MockInsuranceServiceResponse.Instance; insuranceManagementService = new InsuranceManagementService( InsuranceDomain, InsuranceFormatInputOutput, InsuranceServiceResponse, Serializer ); insurance = new DTO.Insurance { insuranceId = 1, name = "Incendios A1", description = "Seguro de Incendios", type = 2, coverage = "50%", start = new DateTime(2000, 9, 11), period = 12, price = 200000, risk = 4 }; customerInsurance = new DTO.CustomerInsurance { customerInsuranceId = 1, document = "98632674", customerName = "Mauricio Cadavid", insuranceId = 1, name = "Incendios A1", description = "Seguro de Incendios", type = 2, coverage = "50%", start = new DateTime(2000, 9, 11), period = 12, price = 200000, risk = 4 }; }