public AutoResolveClientDbContext() { conn = DependencyService.Get<ISQLite>().GetConnection(); CustomerRepository = new CustomerRepository(conn); AccidentRepository = new AccidentRepository(conn); WitnessRepository = new WitnessRepository(conn); OtherDriverRepository = new OtherDriverRepository(conn); MediaRepository = new AccidentMediaRepository(conn); CustomerSettingsRepository = new CustomerSettingsRepository(conn); AccountRepository = new AccountRepository(conn); }
public LifeService(IMapper mapper, CitizenUserRepository citizenUserRepository, AccidentRepository accidentRepository, AdressRepository addressRepository, RoleRepository roleRepository, IHttpContextAccessor httpContextAccessor) { this.mapper = mapper; this.citizenUserRepository = citizenUserRepository; this.addressRepository = addressRepository; this.roleRepository = roleRepository; this.httpContextAccessor = httpContextAccessor; this.accidentRepository = accidentRepository; }
public LifeController(WebMazeContext context, IMapper mapper, AccidentRepository accidentRepository, AdressRepository addressRepository, CitizenUserRepository citizenUserRepository, VictimRepository victimRepository, HouseDestroyedInFireRepository houseDestroyedInFireRepository, FireDetailRepository fireDetailRepository, CriminalOffenceArticleRepository criminalOffenceArticleRepository, CriminalOffenderRepository criminalOffenderRepository, LifeService lifeService) { this.context = context; this.accidentRepository = accidentRepository; this.addressRepository = addressRepository; this.citizenUserRepository = citizenUserRepository; this.victimRepository = victimRepository; this.fireDetailRepository = fireDetailRepository; this.houseDestroyedInFireRepository = houseDestroyedInFireRepository; this.criminalOffenceArticleRepository = criminalOffenceArticleRepository; this.criminalOffenderRepository = criminalOffenderRepository; this.lifeService = lifeService; this.mapper = mapper; }
public AccidentController() { _accidentRepository = new AccidentRepository(); }