private void SetUpRepositories() { ContractorRepository = kernel.Get<IContractorRepository>(); DeviceRepository = kernel.Get<IDeviceRepository>(); FixedAssetRepository = kernel.Get<IFixedAssetRepository>(); KindRepository = kernel.Get<IKindRepository>(); LicenceRepository = kernel.Get<ILicenceRepository>(); PeripheralDeviceRepository = kernel.Get<IPeripheralDeviceRepository>(); PersonRepository = kernel.Get<IPersonRepository>(); SectionRepository = kernel.Get<ISectionRepository>(); SubgroupRepository = kernel.Get<ISubgroupRepository>(); MembershipRoleRepository = kernel.Get<IMembershipRoleRepository>(); MembershipUserRepository = kernel.Get<IMembershipUserRepository>(); }
public PeripheralDeviceService(IPeripheralDeviceRepository repo, IUnitOfWork unitOfWork, IGatewayService gatewayService) { _repo = repo; _unitOfWork = unitOfWork; _gatewayService = gatewayService; }
public PeripheralDeviceController(IPeripheralDeviceRepository repo) { repository = repo; }