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);
            
        }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 public AccidentController()
 {
     _accidentRepository = new AccidentRepository();
 }