Exemple #1
0
        public Insurance(IInsuranceTaxComponent component, Vehicle vehicle, Insured insured)
        {
            Value = component.Calculate();

            VehicleId = vehicle.Id;
            Vehicle   = vehicle;

            InsuredId = insured.Id;
            Insured   = insured;
        }
Exemple #2
0
 public virtual decimal Calculate()
 {
     return(_innerTax.Calculate());
 }