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

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