Exemplo n.º 1
0
 public void Dispose()
 {
     _roleRepository  = null;
     _userRepository  = null;
     _claimRepository = null;
     _context.Dispose();
 }
Exemplo n.º 2
0
        public ClaimLogic(IConfiguration configuration, IHostingEnvironment hostingEnvironment)
        {
            _configuration      = configuration;
            _hostingEnvironment = hostingEnvironment;

            claimRepository = new ClaimRepository(_configuration, _hostingEnvironment);
        }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 public UpdateUserClaimsOperation(
     IResourceOwnerRepository resourceOwnerRepository,
     IClaimRepository claimRepository)
 {
     _resourceOwnerRepository = resourceOwnerRepository;
     _claimRepository         = claimRepository;
 }
Exemplo n.º 5
0
 private void resetRepositories()
 {
     _claimRepository         = null;
     _externalLoginRepository = null;
     _roleRepository          = null;
     _userRepository          = null;
 }
Exemplo n.º 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);
        }
Exemplo n.º 7
0
 public ClaimsController(IClaimRepository claimRepository, IStaffRepository staffRepository, IProjectRepository projectRepository, IStaffProjectMapRepository staffProjectMapRepository, IDepartmentRepository departmentRepository)
 {
     _claimRepository           = claimRepository;
     _staffRepository           = staffRepository;
     _projectRepository         = projectRepository;
     _staffProjectMapRepository = staffProjectMapRepository;
     _departmentRepository      = departmentRepository;
 }
Exemplo n.º 8
0
 public ClaimsController(ILogger <PoliciesController> logger, IClientRepository clientRepository,
                         IPolicyRepository policyRepository, IClaimRepository claimRepository)
 {
     _logger           = logger;
     _clientRepository = clientRepository;
     _policyRepository = policyRepository;
     _claimRepository  = claimRepository;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 13
0
        public void Setup()
        {
            _options = new DbContextOptionsBuilder <ClaimDataContext>()
                       .UseInMemoryDatabase(databaseName: "Claims")
                       .Options;

            _context    = new ClaimDataContext(_options);
            _repository = new ClaimRepository(_context);
        }
Exemplo n.º 14
0
 public ClaimService(
     IPermissionRepository permissionRepository,
     IClaimRepository claimRepository,
     IUnitOfWork uow)
 {
     _permissionRepository = permissionRepository;
     _claimRepository      = claimRepository;
     _unitOfWork           = uow;
 }
Exemplo n.º 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;
 }
Exemplo n.º 17
0
 public RegisterUserHandler(IUserRepository userRepository, ICompanyRepository companyRepository,
                            IAddressRepository addressRepository, IClaimRepository claimRepository,
                            IBaseRepository baseRepository)
 {
     _userRepository    = userRepository;
     _addressRepository = addressRepository;
     _companyRepository = companyRepository;
     _baseRepository    = baseRepository;
     _claimRepository   = claimRepository;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 23
0
 public AuthorizationService(
     IGroupRepository groupRepository,
     IPermissionRepository permissionRepository,
     IAccountRepository accountRepository,
     IClaimRepository claimRepository,
     IUnitOfWork uow)
 {
     _permissionRepository = permissionRepository;
     _groupRepository      = groupRepository;
     _claimRepository      = claimRepository;
     _unitOfWork           = uow;
     _accountRepository    = accountRepository;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 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;
 }
Exemplo n.º 32
0
 public ClaimService(IClaimRepository repository)
 {
     this.repository = repository;
 }
Exemplo n.º 33
0
 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());
 }
Exemplo n.º 39
0
 public ClaimService(IClaimRepository claimRepository)
 {
     _claimRepository = claimRepository;
 }
 public vehiclesController(IClaimRepository repository, ILogger<vehiclesController> logger)
 {
     _claimRepository = repository;
     _logger = logger;
 }
Exemplo n.º 41
0
 public AdjudicationService(ISessionFactory sessionFactory, IClaimRepository claimRepository)
 {
     _sessionFactory = sessionFactory;
     _claimRepository = claimRepository;
 }
Exemplo n.º 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;
 }
Exemplo n.º 43
0
 public ClaimReader(RoutingRelationService routingRelationService, IClaimRepository claimRepository)
 {
     _routingRelationService = routingRelationService;
     _claimRepository = claimRepository;
 }