Ejemplo n.º 1
0
 public InsurancesPolicesController(IInsurancesPoliciesService policyService,
                                    IVehicleService vehicleService,
                                    IInsuranceCompaniesService insuranceCompany,
                                    IMapper mapper)
 {
     this.policyService           = policyService;
     this.vehicleService          = vehicleService;
     this.insuranceCompanyService = insuranceCompany;
     this.mapper = mapper;
 }
Ejemplo n.º 2
0
        public HomeController(
            ILogger <HomeController> logger,
            IBranchesService branchesService,
            IInsurancesPoliciesService policyService,
            IVehicleService vehicleService
            )
        {
            this.branchesService = branchesService;
            this.policyService   = policyService;
            this.vehicleService  = vehicleService;

            _logger = logger;
        }
Ejemplo n.º 3
0
 public InsurancePolicesTest(DatabaseFixture dbContext)
 {
     this.fixture           = dbContext;
     this.mapper            = this.fixture.MapperConfig.CreateMapper();
     this.insuranceServices = new InsurancesPoliciesService(this.fixture.Context, mapper);
 }