Exemple #1
0
 public UpdateVermittlerProfilCommandHandler(
     IInsuranceDbContext insuranceDbContext,
     ICurrentUserService currentUserService)
 {
     _insuranceDbContext = insuranceDbContext;
     _currentUserService = currentUserService;
 }
 public UpdateBearbeitungsstatusOfDokumentFürVermittlerCommandHandler(
     IInsuranceDbContext insuranceDbContext,
     ICurrentUserService currentUserService)
 {
     _insuranceDbContext = insuranceDbContext;
     _currentUserService = currentUserService;
 }
        public InsuranceDbContextTests()
        {
            _dateTime     = new DateTime(3001, 1, 1);
            _dateTimeMock = new Mock <IDateTime>();
            _dateTimeMock.Setup(m => m.UtcNow).Returns(_dateTime);

            _userId = "00000000-0000-0000-0000-000000000000";
            _currentUserServiceMock = new Mock <ICurrentUserService>();
            _currentUserServiceMock.Setup(m => m.KeycloakUserId).Returns(_userId);

            var options = new DbContextOptionsBuilder <InsuranceDbContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString())
                          .Options;

            _sut = new InsuranceDbContext(options, _dateTimeMock.Object, _currentUserServiceMock.Object);

            var land = new Land
            {
                Name = "Land1"
            };

            _sut.Länder.Add(land);

            _sut.SaveChanges();
        }
Exemple #4
0
 public CurrentApiUserBehaviour(
     ICurrentUserService currentUserService,
     IInsuranceDbContext insuranceDbContext)
 {
     _currentUserService = currentUserService;
     _insuranceDbContext = insuranceDbContext;
 }
 public GetTitelQueryHandler(
     IInsuranceDbContext insuranceDbContext,
     IMapper mapper)
 {
     _insuranceDbContext = insuranceDbContext;
     _mapper             = mapper;
 }
 public GetDokumentArtenQueryHandler(
     IInsuranceDbContext insuranceDbContext,
     IMapper mapper)
 {
     _insuranceDbContext = insuranceDbContext;
     _mapper             = mapper;
 }
Exemple #7
0
 public UpdateGesellschaftCommandHandler(
     ICurrentUserService currentUserService,
     IInsuranceDbContext insuranceDbContext)
 {
     _currentUserService = currentUserService;
     _insuranceDbContext = insuranceDbContext;
 }
Exemple #8
0
 public CreateOrUpdateDokumentFürVermittlerCommandHandler(
     IInsuranceDbContext insuranceDbContext,
     ICurrentUserService currentUserService)
 {
     _insuranceDbContext = insuranceDbContext;
     _currentUserService = currentUserService;
 }
Exemple #9
0
 public CreateGesellschaftCommandHandler(IInsuranceDbContext insuranceDbContext,
                                         ICurrentUserService currentUserService,
                                         IHangfireOverMediator hangfireOverMediator)
 {
     _insuranceDbContext   = insuranceDbContext;
     _currentUserService   = currentUserService;
     _hangfireOverMediator = hangfireOverMediator;
 }
 public GetVermittlerQueryHandler(IInsuranceDbContext insuranceDbContext,
                                  IMapper mapper,
                                  ICurrentUserService currentUserService)
 {
     _insuranceDbContext = insuranceDbContext;
     _mapper             = mapper;
     _currentUserService = currentUserService;
 }
 public EinladecodeVermittlerValidation(IInsuranceDbContext insuranceDbContext,
                                        IAESCryptographyService iAesCryptographyService,
                                        ILogger <EinladecodeVermittlerValidation> logger)
 {
     _insuranceDbContext      = insuranceDbContext;
     _iAesCryptographyService = iAesCryptographyService;
     _logger = logger;
 }
 public GetVermittlerGesellschaftenQueryHandler(
     ICurrentUserService currentUserService,
     IMapper mapper,
     IInsuranceDbContext insuranceDbContext)
 {
     _currentUserService = currentUserService;
     _mapper             = mapper;
     _insuranceDbContext = insuranceDbContext;
 }
Exemple #13
0
 public GetGesellschaftenQueryHandler(
     IInsuranceDbContext insuranceDbContext,
     ICurrentUserService currentUserService,
     IMapper mapper)
 {
     _insuranceDbContext = insuranceDbContext;
     _currentUserService = currentUserService;
     _mapper             = mapper;
 }
Exemple #14
0
 public VermittlerNoGenerator(
     IInsuranceDbContext insuranceDbContext,
     IRandomStringGenerator randomStringGenerator,
     ILogger <VermittlerNoGenerator> logger)
 {
     _insuranceDbContext    = insuranceDbContext;
     _randomStringGenerator = randomStringGenerator;
     _logger = logger;
 }
 public GetEinladecodeValiditätQueryHandler(IInsuranceDbContext insuranceDbContext,
                                            IMapper mapper,
                                            IAESCryptographyService aesCryptographyService,
                                            IConfiguration configuration,
                                            ILogger <GetEinladecodeValiditätQuery> logger)
 {
     _insuranceDbContext     = insuranceDbContext;
     _aesCryptographyService = aesCryptographyService;
     _configuration          = configuration;
     _logger = logger;
 }
Exemple #16
0
 public RegisterOrUpdateVermittlerCommandHandler(
     IInsuranceDbContext insuranceDbContext,
     ICurrentUserService currentUserService,
     IEinladecodeVermittlerValidation einladecodeVermittlerValidation,
     IAESCryptographyService aesCryptographyService,
     IVermittlerNoGenerator vermittlerNoGenerator)
 {
     _insuranceDbContext = insuranceDbContext;
     _currentUserService = currentUserService;
     _einladecodeVermittlerValidation = einladecodeVermittlerValidation;
     _iAesCryptographyService         = aesCryptographyService;
     _vermittlerNoGenerator           = vermittlerNoGenerator;
 }
 public CreateVemittlerGesellschaftForAllVermittlerHandler(IInsuranceDbContext insuranceDbContext,
                                                           ILogger <CreateVemittlerGesellschaftForAllVermittlerHandler> logger)
 {
     _insuranceDbContext = insuranceDbContext;
     _logger             = logger;
 }
 public RegistrierungBeendenCommandHandler(ICurrentUserService currentUserService,
                                           IInsuranceDbContext insuranceDbContext)
 {
     _currentUserService = currentUserService;
     _insuranceDbContext = insuranceDbContext;
 }