public InsurancesPolicesController(IInsurancesPoliciesService policyService, IVehicleService vehicleService, IInsuranceCompaniesService insuranceCompany, IMapper mapper) { this.policyService = policyService; this.vehicleService = vehicleService; this.insuranceCompanyService = insuranceCompany; this.mapper = mapper; }
public HomeController( ILogger <HomeController> logger, IBranchesService branchesService, IInsurancesPoliciesService policyService, IVehicleService vehicleService ) { this.branchesService = branchesService; this.policyService = policyService; this.vehicleService = vehicleService; _logger = logger; }
public InsurancePolicesTest(DatabaseFixture dbContext) { this.fixture = dbContext; this.mapper = this.fixture.MapperConfig.CreateMapper(); this.insuranceServices = new InsurancesPoliciesService(this.fixture.Context, mapper); }