Esempio n. 1
0
        private readonly IVehicleToEmployeeRepository _vehicleToEmployeeRepository; // = Program.Container.Resolve<IVehicleToEmployeeRepository>(new NamedParameter("databaseFile", dbString));

        public FleetService()
        {
            _repositoryUser              = Program.Container.Resolve <IUserRepository>(new NamedParameter("databaseFile", dbString));
            _repositoryBusinessUnit      = Program.Container.Resolve <IBusinessUnitRepository>(new NamedParameter("databaseFile", dbString));
            _repositoryEmployee          = Program.Container.Resolve <IEmployeeRepository>(new NamedParameter("databaseFile", dbString));
            _repositoryVehicle           = Program.Container.Resolve <IVehicleRepository>(new NamedParameter("databaseFile", dbString));
            _vehicleToEmployeeRepository = Program.Container.Resolve <IVehicleToEmployeeRepository>(new NamedParameter("databaseFile", dbString));
        }
Esempio n. 2
0
 //Testing
 public FleetService(IBusinessUnitRepository businessUnits,
                     IVehicleRepository vehicles,
                     IEmployeeRepository employees,
                     IUserRepository user,
                     IVehicleToEmployeeRepository vehicleToEmployee)
 {
     _repositoryUser              = user;
     _repositoryBusinessUnit      = businessUnits;
     _repositoryVehicle           = vehicles;
     _repositoryEmployee          = employees;
     _vehicleToEmployeeRepository = vehicleToEmployee;
 }