Пример #1
0
 public void Dispose()
 {
     _roleRepository  = null;
     _userRepository  = null;
     _claimRepository = null;
     _context.Dispose();
 }
Пример #2
0
        public ClaimLogic(IConfiguration configuration, IHostingEnvironment hostingEnvironment)
        {
            _configuration      = configuration;
            _hostingEnvironment = hostingEnvironment;

            claimRepository = new ClaimRepository(_configuration, _hostingEnvironment);
        }
Пример #3
0
 public PeriodManagerService(
     IPeriodRepository periodRep,
     IEmployeeRepository employeeRepository,
     ICalculationRepository calcRep,
     IJobPositionRepository jobPositionRep,
     IJobIndexPointRepository jobIndexPointRep,
     IInquiryJobIndexPointRepository inquiryJobIndexPointRep,
     IInquiryUnitIndexPointRepository inquiryUnitIndexPointRep,
     IClaimRepository claimRep,
     IEventPublisher publisher,
     IInquiryConfiguratorService inquiryConfiguratorService,
     IPeriodBasicDataCopierService periodCopierService
     ,
     IEmployeePointManagerService employeePointManagerService
     )
 {
     this.periodRep                  = periodRep;
     this.employeeRepository         = employeeRepository;
     this.inquiryConfiguratorService = inquiryConfiguratorService;
     this.periodCopierService        = periodCopierService;
     this.publisher                  = publisher;
     this.calcRep                     = calcRep;
     this.jobIndexPointRep            = jobIndexPointRep;
     this.jobPositionRep              = jobPositionRep;
     this.inquiryJobIndexPointRep     = inquiryJobIndexPointRep;
     this.claimRep                    = claimRep;
     this.inquiryUnitIndexPointRep    = inquiryUnitIndexPointRep;
     this.employeePointManagerService = employeePointManagerService;
 }
Пример #4
0
 public UpdateUserClaimsOperation(
     IResourceOwnerRepository resourceOwnerRepository,
     IClaimRepository claimRepository)
 {
     _resourceOwnerRepository = resourceOwnerRepository;
     _claimRepository         = claimRepository;
 }
Пример #5
0
 private void resetRepositories()
 {
     _claimRepository         = null;
     _externalLoginRepository = null;
     _roleRepository          = null;
     _userRepository          = null;
 }
Пример #6
0
        /// <summary>
        /// Instantiate an UpdateClaimInteractor with a mock repository that stores a list of claims to test against
        /// </summary>
        public static UpdateClaimInteractor Create(IClaimRepository listRepository)
        {
            IStatusRepository mirrorStatusRepo = new MirrorStatusRepository();

            var interactor = new UpdateClaimInteractor(listRepository, mirrorStatusRepo);

            return(interactor);
        }
Пример #7
0
 public ClaimsController(IClaimRepository claimRepository, IStaffRepository staffRepository, IProjectRepository projectRepository, IStaffProjectMapRepository staffProjectMapRepository, IDepartmentRepository departmentRepository)
 {
     _claimRepository           = claimRepository;
     _staffRepository           = staffRepository;
     _projectRepository         = projectRepository;
     _staffProjectMapRepository = staffProjectMapRepository;
     _departmentRepository      = departmentRepository;
 }
Пример #8
0
 public ClaimsController(ILogger <PoliciesController> logger, IClientRepository clientRepository,
                         IPolicyRepository policyRepository, IClaimRepository claimRepository)
 {
     _logger           = logger;
     _clientRepository = clientRepository;
     _policyRepository = policyRepository;
     _claimRepository  = claimRepository;
 }
Пример #9
0
 public ClaimController(IClaimRepository claimRepository, IRemoveInvalidCharFromXML removeInvalidCharFromXML,
                        ILogger <ClaimController> logger)
 {
     _claimRepository          = claimRepository;
     _removeInvalidCharFromXML = removeInvalidCharFromXML;
     defaultCostCenter         = _claimRepository.getDefaultCostCenter();
     _logger = logger;
 }
 public ClaimsService(IClaimRepository claimRepository, IScopeRepository scopeRepository,
                      IScopeClaimRepository scopeClaimRepository, IUserScopeClaimRepository userScopeClaimRepository)
 {
     _claimRepository          = claimRepository;
     _scopeRepository          = scopeRepository;
     _scopeClaimRepository     = scopeClaimRepository;
     _userScopeClaimRepository = userScopeClaimRepository;
 }
 public AddUserOperation(
     IResourceOwnerRepository resourceOwnerRepository,
     IClaimRepository claimRepository,
     IAuthenticateResourceOwnerService authenticateResourceOwnerService)
 {
     _resourceOwnerRepository          = resourceOwnerRepository;
     _claimRepository                  = claimRepository;
     _authenticateResourceOwnerService = authenticateResourceOwnerService;
 }
Пример #12
0
 public UserAuthenticationService(IUserRepository userRepository, IClaimRepository claimRepository,
                                  IStudentRepository stRepo, ITeacherRepository trRepo, IParentRepository prRepo)
 {
     this.userRepo    = userRepository;
     this.claimRepo   = claimRepository;
     this.teacherRepo = trRepo;
     this.studentRepo = stRepo;
     this.parentRepo  = prRepo;
 }
Пример #13
0
        public void Setup()
        {
            _options = new DbContextOptionsBuilder <ClaimDataContext>()
                       .UseInMemoryDatabase(databaseName: "Claims")
                       .Options;

            _context    = new ClaimDataContext(_options);
            _repository = new ClaimRepository(_context);
        }
Пример #14
0
 public ClaimService(
     IPermissionRepository permissionRepository,
     IClaimRepository claimRepository,
     IUnitOfWork uow)
 {
     _permissionRepository = permissionRepository;
     _claimRepository      = claimRepository;
     _unitOfWork           = uow;
 }
Пример #15
0
        public BaseSecurityController()
        {
            PermissionRepository = Injection.Get <IPermissionRepository>();
            GroupRepository      = Injection.Get <IGroupRepository>();
            AccountRepository    = Injection.Get <IAccountRepository>();
            ClaimRepository      = Injection.Get <IClaimRepository>();

            Uow = Injection.Get <IAuthUnitOfWork>();
        }
 public LoginCallbackAction(
     IResourceOwnerRepository resourceOwnerRepository,
     IClaimRepository claimRepository,
     IAuthenticateResourceOwnerService authenticateResourceOwnerService)
 {
     _resourceOwnerRepository          = resourceOwnerRepository;
     _claimRepository                  = claimRepository;
     _authenticateResourceOwnerService = authenticateResourceOwnerService;
 }
Пример #17
0
 public RegisterUserHandler(IUserRepository userRepository, ICompanyRepository companyRepository,
                            IAddressRepository addressRepository, IClaimRepository claimRepository,
                            IBaseRepository baseRepository)
 {
     _userRepository    = userRepository;
     _addressRepository = addressRepository;
     _companyRepository = companyRepository;
     _baseRepository    = baseRepository;
     _claimRepository   = claimRepository;
 }
Пример #18
0
 public RoleController(RoleManager <IdentityRole> roleManager
                       , UserManager <SuUserModel> userManager
                       , IClaimRepository Claim
                       , ILanguageRepository language
                       , SuDbContext context) : base(userManager, language)
 {
     _roleManager = roleManager;
     _claim       = Claim;
     _context     = context;
 }
Пример #19
0
 public PurchaseOrdersController(IPurchaseOrdersRepository PurchaseOrdersRepo, ILoggerFactory loggerFactory, INotesAndDocHelper NotesAndDoc, IConfiguration config, IItemServiceHelper ItemsHelper, IEventRepo eventRepo, iBarcodeRangeRepo barcodeRangeRepo, IClaimRepository claimRepository)
 {
     _eventRepo          = eventRepo;
     _config             = config;
     _PurchaseOrdersRepo = PurchaseOrdersRepo;
     _loggerFactory      = loggerFactory;
     _NotesAndDoc        = NotesAndDoc;
     _ItemsHelper        = ItemsHelper;
     _BarcodeRangeRepo   = barcodeRangeRepo;
     _claimRepository    = claimRepository;
 }
Пример #20
0
 public ExternalOpenIdUserAuthenticationAction(
     IAuthenticateHelper authenticateHelper,
     IResourceOwnerRepository resourceOwnerRepository,
     IAuthenticateResourceOwnerService authenticateResourceOwnerService,
     IClaimRepository claimRepository)
 {
     _authenticateHelper               = authenticateHelper;
     _resourceOwnerRepository          = resourceOwnerRepository;
     _authenticateResourceOwnerService = authenticateResourceOwnerService;
     _claimRepository = claimRepository;
 }
 public ClaimsPrincipalService(IUserScopeClaimRepository userScopeClaimRepository, IScopeClaimRepository scopeClaimRepository, IClaimRepository claimRepository,
                               IScopeRepository scopeRepository, IClaimsService claimService, IScopeService scopeService, IUserScopeRepository userScopeRepository, IUserClaimRepository userClaimRepository)
 {
     _userScopeClaimRepository = userScopeClaimRepository;
     _scopeClaimRepository     = scopeClaimRepository;
     _claimRepository          = claimRepository;
     _scopeRepository          = scopeRepository;
     _claimService             = claimService;
     _scopeService             = scopeService;
     _userScopeRepository      = userScopeRepository;
     _userClaimRepository      = userClaimRepository;
 }
Пример #22
0
 public ClaimGenerator(
     IPluginsContainer<IClaimProvider> claimProviders,
     IDslModel dslModel,
     IDomainObjectModel domainObjectModel,
     ILogProvider logProvider,
     IClaimRepository claimRepository)
 {
     _claimProviders = claimProviders;
     _dslModel = dslModel;
     _performanceLogger = logProvider.GetLogger("Performance");
     _logger = logProvider.GetLogger("ClaimGenerator");
     _claimRepository = claimRepository;
 }
Пример #23
0
 public AuthorizationService(
     IGroupRepository groupRepository,
     IPermissionRepository permissionRepository,
     IAccountRepository accountRepository,
     IClaimRepository claimRepository,
     IUnitOfWork uow)
 {
     _permissionRepository = permissionRepository;
     _groupRepository      = groupRepository;
     _claimRepository      = claimRepository;
     _unitOfWork           = uow;
     _accountRepository    = accountRepository;
 }
Пример #24
0
 public PeriodClaimServiceFacade(IClaimService claimService,
                                 IMapper <Claim, ClaimDTO> claimDTOMapper,
                                 IMapper <Claim, ClaimDTOWithAction> claimDTOWithActionsMapper,
                                 IMapper <ClaimState, ClaimStateDTO> claimStateDTOMapper,
                                 IMapper <ClaimTypeEnum, ClaimTypeDTO> claimTypeDTOMapper,
                                 IClaimRepository claimRep)
 {
     this.claimService              = claimService;
     this.claimDTOMapper            = claimDTOMapper;
     this.claimDTOWithActionsMapper = claimDTOWithActionsMapper;
     this.claimStateDTOMapper       = claimStateDTOMapper;
     this.claimTypeDTOMapper        = claimTypeDTOMapper;
     this.claimRep = claimRep;
 }
Пример #25
0
 public ClaimPollingAgent(ILogManager logManager, IEventCustomerRepository eventCustomerRepository, ISettings settings, IBillingAccountRepository billingAccountRepository, IEncounterRepository encounterRepository,
                          IClaimRepository claimRepository, IOrderRepository orderRepository, ICombinedPaymentInstrumentRepository paymentInstrumentRepository, IUniqueItemRepository <Event> eventRepository)
 {
     _logger = logManager.GetLogger <ClaimPollingAgent>();
     _eventCustomerRepository = eventCustomerRepository;
     _settings = settings;
     _kareoApi = new KareoApi();
     _billingAccountRepository    = billingAccountRepository;
     _encounterRepository         = encounterRepository;
     _claimRepository             = claimRepository;
     _orderRepository             = orderRepository;
     _paymentInstrumentRepository = paymentInstrumentRepository;
     _eventRepository             = eventRepository;
 }
Пример #26
0
 public RoleClaimAggregationRepository(IRoleRepository roleRepository,
                                       IRoleClaimRepository roleClaimRepository,
                                       IUserRoleRepository userRoleRepository,
                                       IAccountRepository accountRepository,
                                       IClaimRepository claimRepository,
                                       IMySqlConnHelper mySqlConnHelper)
 {
     _roleRepository      = roleRepository;
     _roleClaimRepository = roleClaimRepository;
     _userRoleRepository  = userRoleRepository;
     _accountRepository   = accountRepository;
     _claimRepository     = claimRepository;
     _mySqlConnHelper     = mySqlConnHelper;
 }
 public ChangeClaimStateService(
     IClaimStateFactory claimStateFactory,
     IClaimRepository claimRepository,
     IClaimStateRepository stateRepository,
     IClaimWorkflowService claimWorkflowService,
     IGetClaimService getClaimService,
     IEmailSender emailSender)
 {
     this.claimStateFactory    = claimStateFactory;
     this.claimRepository      = claimRepository;
     this.stateRepository      = stateRepository;
     this.claimWorkflowService = claimWorkflowService;
     this.getClaimService      = getClaimService;
     this.emailSender          = emailSender;
 }
Пример #28
0
 public AddUserOperation(IResourceOwnerRepository resourceOwnerRepository,
                         IClaimRepository claimRepository,
                         ILinkProfileAction linkProfileAction,
                         IAccountFilter accountFilter,
                         IOpenIdEventSource openIdEventSource,
                         IEnumerable <IUserClaimsEnricher> userClaimsEnricherLst,
                         ISubjectBuilder subjectBuilder)
 {
     _resourceOwnerRepository = resourceOwnerRepository;
     _claimRepository         = claimRepository;
     _linkProfileAction       = linkProfileAction;
     _accountFilter           = accountFilter;
     _openidEventSource       = openIdEventSource;
     _userClaimsEnricherLst   = userClaimsEnricherLst;
     _subjectBuilder          = subjectBuilder;
 }
Пример #29
0
 public ClientRepository(
     IClientFactory factory,
     ISecretsRepository secretsRepo,
     IScopeRepository scopeRepo,
     IClaimRepository claimRepo,
     IGrantTypeRepository grantRepo,
     ResourceConfigDbContext context
     )
 {
     _factory     = factory;
     _secretsRepo = secretsRepo;
     _scopeRepo   = scopeRepo;
     _claimRepo   = claimRepo;
     _grantRepo   = grantRepo;
     ctx          = context;
 }
Пример #30
0
        public override void Initialize()
        {
            base.Initialize();

            var context = Factory.Get();

            Uow = new AuthUnitOfWork(Factory);

            PermissionRepository = new PermissionRepository(Factory);
            GroupRepository      = new GroupRepository(Factory);
            AccountRepository    = new AccountRepository(Factory);
            UserRepository       = new UserRepository(IdentityUserStore, Factory);

            ClaimRepository      = new ClaimRepository(Factory);
            AuthorizationService = new AuthorizationService(GroupRepository, PermissionRepository, AccountRepository, ClaimRepository, Uow);
        }
Пример #31
0
 public UpdateClaimService(
     IClaimRepository claimRepository,
     IUpdateAdressService updateAdressService,
     IUpdateClaimInsuredPersonService updateClaimInsuredPersonService,
     IUpdateClaimThirdInsuredPersonService updateClaimThirdInsuredPersonService,
     IUpdateClaimInsuredVehicleService updateClaimInsuredVehicleService,
     IUpdateClaimThirdInsuredVehicleService updateClaimThirdInsuredVehicleService,
     IChangeClaimStateService changeClaimStateService,
     IUpdateClaimOfferService updateClaimOfferService)
 {
     this.claimRepository                       = claimRepository;
     this.updateAdressService                   = updateAdressService;
     this.updateClaimInsuredPersonService       = updateClaimInsuredPersonService;
     this.updateClaimThirdInsuredPersonService  = updateClaimThirdInsuredPersonService;
     this.updateClaimInsuredVehicleService      = updateClaimInsuredVehicleService;
     this.updateClaimThirdInsuredVehicleService = updateClaimThirdInsuredVehicleService;
     this.changeClaimStateService               = changeClaimStateService;
     this.updateClaimOfferService               = updateClaimOfferService;
 }
Пример #32
0
 public ClaimService(IClaimRepository repository)
 {
     this.repository = repository;
 }
 private void resetRepositories()
 {
     _claimRepository = null;
     _externalLoginRepository = null;
     _roleRepository = null;
     _userRepository = null;
 }
 public GetClaimInteractor(IClaimRepository claimRepo)
 {
     _repo = claimRepo;
 }
        public void Init()
        {
            var builder = new ContainerBuilder();
            builder.RegisterModule(new Application.Composition.CoreModule());
            builder.RegisterModule(new Application.Composition.MessagingModule());
            builder.RegisterModule(new PersistenceModule()
            {
                UseFakeWorkspace = true,
                ConnectionStringOrName = Path.GetTempFileName()
            });

            var container = builder.Build();

            _claimRepository = container.Resolve<IClaimRepository>();
            _unitUnderTest = container.Resolve<ICommandDispatcher>();
        }
 public claimsController(IClaimRepository repository, ILogger<claimsController> logger)
 {
     _claimRepository = repository;
     _logger = logger;
 }
 public CreateClaimInteractor(IClaimRepository claimRepo)
 {
     _repo = claimRepo;
 }
 public void Init()
 {
     //_ws = new FakeWorkspace(Path.GetTempFileName());
     _ws = new EFWorkspace(new EFContext());
     _unitUnderTest = new ClaimRepository(_ws, new ClaimFactory());
 }
Пример #39
0
 public ClaimService(IClaimRepository claimRepository)
 {
     _claimRepository = claimRepository;
 }
 public vehiclesController(IClaimRepository repository, ILogger<vehiclesController> logger)
 {
     _claimRepository = repository;
     _logger = logger;
 }
Пример #41
0
 public AdjudicationService(ISessionFactory sessionFactory, IClaimRepository claimRepository)
 {
     _sessionFactory = sessionFactory;
     _claimRepository = claimRepository;
 }
Пример #42
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="ClaimFactory" /> class.
 /// </summary>
 /// <param name="claimRepository"> The claim repository. </param>
 public ClaimFactory( IClaimRepository claimRepository)
 {
     _claimRepository = claimRepository;
 }
Пример #43
0
 public ClaimReader(RoutingRelationService routingRelationService, IClaimRepository claimRepository)
 {
     _routingRelationService = routingRelationService;
     _claimRepository = claimRepository;
 }